Answers for "flutter display alert dialog after server error"

0

flutter display alert dialog after server error

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')))
       ]);
}))
Posted by: Guest on April-28-2021

Code answers related to "flutter display alert dialog after server error"

Browse Popular Code Answers by Language