mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-08 21:41:27 +03:00
has crash when popup msgbox when there is keyboard or some other
condition
This commit is contained in:
@@ -64,12 +64,13 @@ Future<T> showAlertDialog<T>(BuildContext context, BuildAlertDailog build,
|
||||
return res;
|
||||
}
|
||||
|
||||
void msgbox(String type, String title, String text, BuildContext context,
|
||||
[bool hasCancel]) {
|
||||
Future<T> msgbox<T>(
|
||||
String type, String title, String text, BuildContext context,
|
||||
[bool hasCancel]) async {
|
||||
if (hasCancel == null) {
|
||||
hasCancel = type != 'error';
|
||||
}
|
||||
showAlertDialog(
|
||||
return await showAlertDialog<T>(
|
||||
context,
|
||||
(_) => Tuple3(Text(title), Text(text), [
|
||||
hasCancel
|
||||
|
||||
Reference in New Issue
Block a user