From 4cf08d208766ac93ae36973f53ec5d4f639478ca Mon Sep 17 00:00:00 2001 From: Alexandre Ardhuin Date: Thu, 15 Sep 2022 09:21:07 +0200 Subject: [PATCH] fix for upcoming use_build_context_synchronously --- lib/pages/demo.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pages/demo.dart b/lib/pages/demo.dart index 6a3255cb6b..aff7dd4cce 100644 --- a/lib/pages/demo.dart +++ b/lib/pages/demo.dart @@ -194,7 +194,7 @@ class _GalleryDemoPageState extends State if (await canLaunchUrlString(url)) { await launchUrlString(url); - } else { + } else if (mounted) { await showDialog( context: context, builder: (context) {