Skip to content

Instantly share code, notes, and snippets.

@JulianBissekkou
Last active July 18, 2018 10:01
Show Gist options
  • Save JulianBissekkou/37f3ebc1a43319c68926963abd7eff6f to your computer and use it in GitHub Desktop.
Save JulianBissekkou/37f3ebc1a43319c68926963abd7eff6f to your computer and use it in GitHub Desktop.
@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