From cf2ad989ff82905de3b86b77afc36f365250eb35 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Wed, 23 Nov 2022 09:14:22 +0530 Subject: [PATCH] minor fix --- lib/ui/notification/update/change_log_page.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ui/notification/update/change_log_page.dart b/lib/ui/notification/update/change_log_page.dart index 94eae649f..5b6e0bd33 100644 --- a/lib/ui/notification/update/change_log_page.dart +++ b/lib/ui/notification/update/change_log_page.dart @@ -72,7 +72,9 @@ class _ChangeLogPageState extends State { child: GradientButton( onTap: () async { await UpdateService.instance.hideChangeLog(); - Navigator.of(context).pop(); + if (mounted && Navigator.of(context).canPop()) { + Navigator.of(context).pop(); + } }, text: "Let's go", ),