dialog clickMaskDismiss
This commit is contained in:
parent
9b68507683
commit
f88b775af3
@ -95,7 +95,7 @@ class DialogManager {
|
||||
}
|
||||
|
||||
static Future<T?> show<T>(DialogBuilder builder,
|
||||
{bool barrierDismissible = false,
|
||||
{bool clickMaskDismiss = false,
|
||||
String? tag,
|
||||
bool useAnimation = true}) async {
|
||||
final t;
|
||||
@ -112,6 +112,7 @@ class DialogManager {
|
||||
};
|
||||
final res = await SmartDialog.show<T>(
|
||||
tag: t,
|
||||
clickMaskDismiss: clickMaskDismiss,
|
||||
useAnimation: useAnimation,
|
||||
builder: (_) => StatefulBuilder(
|
||||
builder: (_, setState) => builder(setState, close)));
|
||||
|
@ -880,7 +880,7 @@ void showOptions() {
|
||||
onWillPop: () async => true,
|
||||
contentPadding: 0,
|
||||
);
|
||||
}, barrierDismissible: true);
|
||||
}, clickMaskDismiss: true);
|
||||
}
|
||||
|
||||
void showSetOSPassword(bool login) {
|
||||
|
@ -248,7 +248,7 @@ void showServerSettingsWithValue(
|
||||
return true;
|
||||
},
|
||||
);
|
||||
}, barrierDismissible: true);
|
||||
}, clickMaskDismiss: true);
|
||||
}
|
||||
|
||||
String? validate(value) {
|
||||
|
@ -122,7 +122,7 @@ void showAbout() {
|
||||
return true;
|
||||
},
|
||||
);
|
||||
}, barrierDismissible: true);
|
||||
}, clickMaskDismiss: true);
|
||||
}
|
||||
|
||||
Future<String> login(String name, String pass) async {
|
||||
|
@ -228,7 +228,7 @@ packages:
|
||||
description:
|
||||
path: "."
|
||||
ref: HEAD
|
||||
resolved-ref: d04ceaa243e7a7883065a41b1008627ceeafc0ff
|
||||
resolved-ref: c89ce60664cbc206cb98c1f407e86b8a766f4c0e
|
||||
url: "https://github.com/Heap-Hop/flutter_smart_dialog.git"
|
||||
source: git
|
||||
version: "4.0.0"
|
||||
|
Loading…
Reference in New Issue
Block a user