diff --git a/lib/utils/show_general_dialog.dart b/lib/utils/show_general_dialog.dart index 2385b93851..8faa85d306 100644 --- a/lib/utils/show_general_dialog.dart +++ b/lib/utils/show_general_dialog.dart @@ -9,11 +9,12 @@ Future showArDriveDialog( required Widget content, Color? barrierColor, }) async { - context.read().setShowingAnyDialog(true); + final activityTracker = context.read(); + activityTracker.setShowingAnyDialog(true); return showAnimatedDialog( context, content: content, barrierColor: barrierColor, barrierDismissible: barrierDismissible, - ).then((value) => context.read().setShowingAnyDialog(false)); + ).then((value) => activityTracker.setShowingAnyDialog(false)); }