TF-1915 Add await for all show dialog
(cherry picked from commit f710f75f3ffb29a4e2fabfc33054eaa4554a944c)
This commit is contained in:
+2
-2
@@ -49,8 +49,8 @@ class ConfirmationDialogActionSheetBuilder {
|
||||
_styleCancelButton = style;
|
||||
}
|
||||
|
||||
void show() {
|
||||
showCupertinoModalPopup(
|
||||
void show() async {
|
||||
await showCupertinoModalPopup(
|
||||
context: _context,
|
||||
barrierColor: AppColor.colorDefaultCupertinoActionSheet,
|
||||
builder: (context) => PointerInterceptor(child: CupertinoActionSheet(
|
||||
|
||||
@@ -163,7 +163,7 @@ class ToastView {
|
||||
required double currentMaxWidth,
|
||||
Widget? leading
|
||||
}) {
|
||||
return leading == null ? currentMaxWidth : currentMaxWidth - 90;
|
||||
return leading == null ? currentMaxWidth : currentMaxWidth - 100;
|
||||
}
|
||||
|
||||
static Positioned _showWidgetBasedOnPosition(
|
||||
|
||||
@@ -28,12 +28,12 @@ mixin MessageDialogActionMixin {
|
||||
Color? actionButtonColor,
|
||||
Color? cancelButtonColor,
|
||||
}
|
||||
) {
|
||||
) async {
|
||||
final responsiveUtils = Get.find<ResponsiveUtils>();
|
||||
final imagePaths = Get.find<ImagePaths>();
|
||||
|
||||
if (alignCenter) {
|
||||
showDialog(
|
||||
await showDialog(
|
||||
context: context,
|
||||
barrierColor: AppColor.colorDefaultCupertinoActionSheet,
|
||||
builder: (BuildContext context) => PointerInterceptor(
|
||||
@@ -63,7 +63,7 @@ mixin MessageDialogActionMixin {
|
||||
} else {
|
||||
if (responsiveUtils.isMobile(context)) {
|
||||
if (showAsBottomSheet) {
|
||||
showModalBottomSheet(
|
||||
await showModalBottomSheet(
|
||||
context: context,
|
||||
isScrollControlled: true,
|
||||
barrierColor: AppColor.colorDefaultCupertinoActionSheet,
|
||||
@@ -107,7 +107,7 @@ mixin MessageDialogActionMixin {
|
||||
})).show();
|
||||
}
|
||||
} else {
|
||||
showDialog(
|
||||
await showDialog(
|
||||
context: context,
|
||||
barrierColor: AppColor.colorDefaultCupertinoActionSheet,
|
||||
builder: (BuildContext context) => PointerInterceptor(
|
||||
|
||||
Reference in New Issue
Block a user