barrierDismissible and onWillPop
This commit is contained in:
parent
61722f5b8e
commit
9dadd76a8d
@ -135,8 +135,12 @@ void showServer() {
|
|||||||
},
|
},
|
||||||
child: Text(translate('OK')),
|
child: Text(translate('OK')),
|
||||||
),
|
),
|
||||||
]);
|
],
|
||||||
});
|
onWillPop: () async {
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}, barrierDismissible: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
String? validate(value) {
|
String? validate(value) {
|
||||||
@ -169,18 +173,10 @@ void showAbout() {
|
|||||||
)),
|
)),
|
||||||
)),
|
)),
|
||||||
]),
|
]),
|
||||||
actions: [
|
actions: [],
|
||||||
TextButton(
|
|
||||||
style: flatButtonStyle,
|
|
||||||
onPressed: () {
|
|
||||||
close();
|
|
||||||
},
|
|
||||||
child: Text(translate('OK')),
|
|
||||||
)
|
|
||||||
],
|
|
||||||
onWillPop: () async {
|
onWillPop: () async {
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
});
|
}, barrierDismissible: true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user