Committed by
GitHub
Hero animation support
Simple solution to work Hero animation with modal_bottom_sheet
Showing
1 changed file
with
7 additions
and
1 deletions
| @@ -127,7 +127,7 @@ class _ModalBottomSheetState<T> extends State<_ModalBottomSheet<T>> { | @@ -127,7 +127,7 @@ class _ModalBottomSheetState<T> extends State<_ModalBottomSheet<T>> { | ||
| 127 | } | 127 | } |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | -class ModalBottomSheetRoute<T> extends PopupRoute<T> { | 130 | +class ModalBottomSheetRoute<T> extends PageRoute<T> { |
| 131 | ModalBottomSheetRoute({ | 131 | ModalBottomSheetRoute({ |
| 132 | this.closeProgressThreshold, | 132 | this.closeProgressThreshold, |
| 133 | this.containerBuilder, | 133 | this.containerBuilder, |
| @@ -168,8 +168,14 @@ class ModalBottomSheetRoute<T> extends PopupRoute<T> { | @@ -168,8 +168,14 @@ class ModalBottomSheetRoute<T> extends PopupRoute<T> { | ||
| 168 | 168 | ||
| 169 | @override | 169 | @override |
| 170 | bool get barrierDismissible => isDismissible; | 170 | bool get barrierDismissible => isDismissible; |
| 171 | + | ||
| 172 | + @override | ||
| 173 | + bool get maintainState => false; //idk but needed | ||
| 171 | 174 | ||
| 172 | @override | 175 | @override |
| 176 | + bool get opaque => false; //transparency | ||
| 177 | + | ||
| 178 | + @override | ||
| 173 | final String? barrierLabel; | 179 | final String? barrierLabel; |
| 174 | 180 | ||
| 175 | @override | 181 | @override |
-
Please register or login to post a comment