Questions tagged «flutter-alertdialog»

15
如何在FlatButton单击时关闭AlertDialog?
我有以下几点AlertDialog。 showDialog( context: context, child: new AlertDialog( title: const Text("Location disabled"), content: const Text( """ Location is disabled on this device. Please enable it and try again. """), actions: [ new FlatButton( child: const Text("Ok"), onPressed: _dismissDialog, ), ], ), ); 我_dismissDialog()该如何解雇说AlertDialog?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.