Flutter Display Alert Alert po błędzie serwera
Provider.of<NewsProvider>(context, listen: false)
.fetchAndSetNewsList()
.catchError((error) => showDialog(context: context, builder: (context) {
return new SimpleDialog(
children: <Widget>[
new Center(child: new Container(child: new Text('foo')))
]);
}))
Lokesh003