Pytania otagowane jako flutter-alertdialog

16
Jak odrzucić AlertDialog po kliknięciu FlatButton?
Mam następujące 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, ), ], ), ); Jak mogę zrobić _dismissDialog()zwolnienie powiedział AlertDialog?
Korzystając z naszej strony potwierdzasz, że przeczytałeś(-aś) i rozumiesz nasze zasady używania plików cookie i zasady ochrony prywatności.
Licensed under cc by-sa 3.0 with attribution required.