mirror of
https://github.com/SyncrowIOT/web.git
synced 2026-10-25 15:37:56 +00:00
fix bugs
This commit is contained in:
@@ -461,7 +461,7 @@ class VisitorPasswordBloc
|
||||
return null;
|
||||
}
|
||||
|
||||
Future<void> stateDialog({
|
||||
Future stateDialog({
|
||||
BuildContext? context,
|
||||
String? message,
|
||||
String? title,
|
||||
@@ -469,6 +469,7 @@ class VisitorPasswordBloc
|
||||
Widget? widgeta,
|
||||
}) {
|
||||
return showCustomDialog(
|
||||
barrierDismissible: false,
|
||||
context: context!,
|
||||
message: message!,
|
||||
iconPath: Assets.deviceNoteIcon,
|
||||
@@ -479,7 +480,7 @@ class VisitorPasswordBloc
|
||||
<Widget>[
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
Navigator.of(context).pop(true);
|
||||
},
|
||||
child: const Text('OK'),
|
||||
),
|
||||
@@ -487,30 +488,5 @@ class VisitorPasswordBloc
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// Future<void> stateAndDeviseDialog({
|
||||
// BuildContext? context,
|
||||
// String? message,
|
||||
// String? title,
|
||||
// dynamic actions,
|
||||
// }) {
|
||||
// return showCustomDialog(
|
||||
// context: context!,
|
||||
// message: message!,
|
||||
// iconPath: Assets.deviceNoteIcon,
|
||||
// title: title,
|
||||
// dialogHeight: 150,
|
||||
// actions: actions ??
|
||||
// <Widget>[
|
||||
// TextButton(
|
||||
// onPressed: () {
|
||||
// Navigator.of(context).pop();
|
||||
// },
|
||||
// child: const Text('OK'),
|
||||
// ),
|
||||
// ],
|
||||
// );
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user