dialog clickMaskDismiss

This commit is contained in:
csf 2022-04-20 23:43:19 +08:00
parent 9b68507683
commit f88b775af3
5 changed files with 6 additions and 5 deletions

View File

@ -95,7 +95,7 @@ class DialogManager {
} }
static Future<T?> show<T>(DialogBuilder builder, static Future<T?> show<T>(DialogBuilder builder,
{bool barrierDismissible = false, {bool clickMaskDismiss = false,
String? tag, String? tag,
bool useAnimation = true}) async { bool useAnimation = true}) async {
final t; final t;
@ -112,6 +112,7 @@ class DialogManager {
}; };
final res = await SmartDialog.show<T>( final res = await SmartDialog.show<T>(
tag: t, tag: t,
clickMaskDismiss: clickMaskDismiss,
useAnimation: useAnimation, useAnimation: useAnimation,
builder: (_) => StatefulBuilder( builder: (_) => StatefulBuilder(
builder: (_, setState) => builder(setState, close))); builder: (_, setState) => builder(setState, close)));

View File

@ -880,7 +880,7 @@ void showOptions() {
onWillPop: () async => true, onWillPop: () async => true,
contentPadding: 0, contentPadding: 0,
); );
}, barrierDismissible: true); }, clickMaskDismiss: true);
} }
void showSetOSPassword(bool login) { void showSetOSPassword(bool login) {

View File

@ -248,7 +248,7 @@ void showServerSettingsWithValue(
return true; return true;
}, },
); );
}, barrierDismissible: true); }, clickMaskDismiss: true);
} }
String? validate(value) { String? validate(value) {

View File

@ -122,7 +122,7 @@ void showAbout() {
return true; return true;
}, },
); );
}, barrierDismissible: true); }, clickMaskDismiss: true);
} }
Future<String> login(String name, String pass) async { Future<String> login(String name, String pass) async {

View File

@ -228,7 +228,7 @@ packages:
description: description:
path: "." path: "."
ref: HEAD ref: HEAD
resolved-ref: d04ceaa243e7a7883065a41b1008627ceeafc0ff resolved-ref: c89ce60664cbc206cb98c1f407e86b8a766f4c0e
url: "https://github.com/Heap-Hop/flutter_smart_dialog.git" url: "https://github.com/Heap-Hop/flutter_smart_dialog.git"
source: git source: git
version: "4.0.0" version: "4.0.0"