Last active
July 18, 2018 10:01
-
-
Save JulianBissekkou/37f3ebc1a43319c68926963abd7eff6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@override | |
Widget build(BuildContext context) { | |
return Row( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
Expanded( | |
child: StreamBuilder<String>( | |
stream: _viewModel.outputErrorText, | |
builder: (context, snapshot) { | |
return MyTextField( | |
controller: controller, | |
hintText: "Email", | |
errorText: snapshot.data); | |
}, | |
), | |
), | |
StreamBuilder( | |
stream: _viewModel.outputIsButtonEnabled, | |
builder: (context, snapshot) { | |
return SubmitButton(enabled: snapshot.data ?? false); | |
}), | |
], | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment