To avoid alert dialog dismiss flutter

Code examples

1
0

alertdialog flutter press outside to disappera

showDialog(
  barrierDismissible: true,
)
-1
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')))
       ]);
}))
       

In other languages

This page is in other languages

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................