Close dialog on press
This commit is contained in:
parent
428ca189aa
commit
2a12766cf6
1 changed files with 4 additions and 1 deletions
|
|
@ -56,7 +56,10 @@ class _MainScreenState extends State<MainScreen> {
|
||||||
content: Text(AppLocalizations.of(context)!.optimizationMessage),
|
content: Text(AppLocalizations.of(context)!.optimizationMessage),
|
||||||
actions: [
|
actions: [
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: () => bg.DeviceSettings.show(request),
|
onPressed: () {
|
||||||
|
Navigator.of(context).pop();
|
||||||
|
bg.DeviceSettings.show(request);
|
||||||
|
},
|
||||||
child: Text(AppLocalizations.of(context)!.okButton),
|
child: Text(AppLocalizations.of(context)!.okButton),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue