This commit is contained in:
mohammad
2024-08-27 11:27:31 +03:00
parent 2e3f130071
commit e37ce1925b
7 changed files with 77 additions and 175 deletions
@@ -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'),
// ),
// ],
// );
// }
}