Commit 22b5bd3c authored by Wilko Manger's avatar Wilko Manger

Set initial data for StreamBuilders

parent 603a9075
......@@ -116,6 +116,7 @@ class UsernamePageState extends State<UsernamePage> {
),
SizedBox(height: 16),
StreamBuilder<RequestState>(
initialData: RequestState.none,
stream: bloc.isUsernameAvailable,
builder: (BuildContext context, AsyncSnapshot<RequestState> snapshot) {
String errorText;
......
......@@ -81,6 +81,7 @@ class PasswordPageState extends State<PasswordPage> {
),
SizedBox(height: 16),
StreamBuilder<RequestState>(
initialData: RequestState.none,
stream: bloc.loginStream,
builder: (
BuildContext context,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment