Skip to content

Commit

Permalink
fix: [MDS-993] Bottomsheet route pop hotfix (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kypsis authored Feb 14, 2024
1 parent cd4d4ae commit 218cbe0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/widgets/bottom_sheet/modal_bottom_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ class MoonModalBottomSheetRoute<T> extends PageRoute<T> {

AnimationController? _animationController;

// RoutePopDisposition.pop breaks the bottomsheet drag to close functionality and eventually causes a crash.
bool get _hasScopedWillPopCallback => popDisposition == RoutePopDisposition.bubble;

@override
Expand Down

0 comments on commit 218cbe0

Please sign in to comment.