From 218cbe042227286daca4c88d9fe8199bc5d45093 Mon Sep 17 00:00:00 2001 From: Harry Sild <46851868+Kypsis@users.noreply.github.com> Date: Wed, 14 Feb 2024 15:28:21 +0200 Subject: [PATCH] fix: [MDS-993] Bottomsheet route pop hotfix (#349) --- lib/src/widgets/bottom_sheet/modal_bottom_sheet.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/widgets/bottom_sheet/modal_bottom_sheet.dart b/lib/src/widgets/bottom_sheet/modal_bottom_sheet.dart index 8ea853e0..9bc6baa7 100644 --- a/lib/src/widgets/bottom_sheet/modal_bottom_sheet.dart +++ b/lib/src/widgets/bottom_sheet/modal_bottom_sheet.dart @@ -116,6 +116,7 @@ class MoonModalBottomSheetRoute extends PageRoute { AnimationController? _animationController; + // RoutePopDisposition.pop breaks the bottomsheet drag to close functionality and eventually causes a crash. bool get _hasScopedWillPopCallback => popDisposition == RoutePopDisposition.bubble; @override