From 0c46d4e5f961261e0d6897054caacf6ea80e6d79 Mon Sep 17 00:00:00 2001 From: raviramnani Date: Wed, 31 Jul 2024 17:37:32 +0530 Subject: [PATCH] updated some files --- easel/lib/repository/repository.dart | 4 ++-- easel/lib/widgets/loading.dart | 1 - easel/lib/widgets/loading_with_progress.dart | 1 - wallet/lib/components/loading.dart | 1 - wallet/lib/components/no_internet.dart | 1 - 5 files changed, 2 insertions(+), 6 deletions(-) diff --git a/easel/lib/repository/repository.dart b/easel/lib/repository/repository.dart index bf165f041e..da74ccb7f4 100644 --- a/easel/lib/repository/repository.dart +++ b/easel/lib/repository/repository.dart @@ -324,8 +324,8 @@ class RepositoryImp implements Repository { try { final storageResponseModel = await remoteDataSource.uploadFile(file: file, uploadProgressCallback: onUploadProgressCallback); return Right(storageResponseModel); - } on Exception catch (_) { - crashlyticsHelper.recordFatalError(error: _.toString()); + } on Exception catch (e) { + crashlyticsHelper.recordFatalError(error: e.toString()); return Left(CacheFailure(LocaleKeys.update_failed.tr())); } } diff --git a/easel/lib/widgets/loading.dart b/easel/lib/widgets/loading.dart index 8cdef25b1f..d054861925 100644 --- a/easel/lib/widgets/loading.dart +++ b/easel/lib/widgets/loading.dart @@ -21,7 +21,6 @@ class Loading { } return showDialog( context: navigatorKey.currentState!.overlay!.context, - barrierDismissible: true, barrierColor: Colors.white.withOpacity(0), builder: (ctx) => PopScope( canPop: false, diff --git a/easel/lib/widgets/loading_with_progress.dart b/easel/lib/widgets/loading_with_progress.dart index b528621cb0..f1f466b644 100644 --- a/easel/lib/widgets/loading_with_progress.dart +++ b/easel/lib/widgets/loading_with_progress.dart @@ -25,7 +25,6 @@ class LoadingProgress { } return showDialog( context: navigatorKey.currentState!.overlay!.context, - barrierDismissible: true, builder: (ctx) => PopScope( canPop: false, child: AlertDialog( diff --git a/wallet/lib/components/loading.dart b/wallet/lib/components/loading.dart index a060d36e11..8a3b43df02 100644 --- a/wallet/lib/components/loading.dart +++ b/wallet/lib/components/loading.dart @@ -35,7 +35,6 @@ class Loading { } return showDialog( context: navigatorKey.currentState!.overlay!.context, - barrierDismissible: true, barrierColor: Colors.white.withOpacity(0), builder: (ctx) => PopScope( canPop: false, diff --git a/wallet/lib/components/no_internet.dart b/wallet/lib/components/no_internet.dart index 856a8f0968..e4a1e8934c 100644 --- a/wallet/lib/components/no_internet.dart +++ b/wallet/lib/components/no_internet.dart @@ -35,7 +35,6 @@ class NoInternetDialog { return showDialog( context: navigatorKey.currentState!.overlay!.context, - barrierDismissible: true, barrierColor: Colors.white.withOpacity(0), builder: (ctx) { setIsShowing = true;