Flutter: bloc, how to show an alert dialog
问题 I´m new in the bloc pattern and stream stuff. I want to show up an alert dialog when I press a button, but I can´t find a way to do it. Actually my code is: Widget button() { return RaisedButton( child: Text('Show alert'), color: Colors.blue[700], textColor: Colors.white, onPressed: () { bloc.submit(); }); } return Scaffold( appBar: AppBar( title: Text("Title"), ), body: StreamBuilder( stream: bloc.getAlert, builder: (context, snapshot) { if (snapshot.hasData) { return Text("I have Dataaaaaa