-
-
Save Vanethos/ec0747babf1b440a6e0b9a2df6fda6ca 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
class _MyHomePageState extends BaseState<MyHomePage> with BasicPage, ErrorHandlingMixin { | |
//... | |
@override | |
Widget fab() => FloatingActionButton( | |
child: Icon(Icons.error), | |
onPressed: () => widget.bloc.errorSink.add("A new error!"), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment