Committed by
GitHub
Remove accessibleNavigation reference from BottomSheet (#339)
Showing
1 changed file
with
2 additions
and
5 deletions
| @@ -366,16 +366,13 @@ class ModalBottomSheetState extends State<ModalBottomSheet> | @@ -366,16 +366,13 @@ class ModalBottomSheetState extends State<ModalBottomSheet> | ||
| 366 | ); | 366 | ); |
| 367 | } | 367 | } |
| 368 | 368 | ||
| 369 | - final mediaQuery = MediaQuery.of(context); | ||
| 370 | - | ||
| 371 | child = AnimatedBuilder( | 369 | child = AnimatedBuilder( |
| 372 | animation: widget.animationController, | 370 | animation: widget.animationController, |
| 373 | builder: (context, Widget? child) { | 371 | builder: (context, Widget? child) { |
| 374 | assert(child != null); | 372 | assert(child != null); |
| 375 | final animationValue = animationCurve.transform( | 373 | final animationValue = animationCurve.transform( |
| 376 | - mediaQuery.accessibleNavigation | ||
| 377 | - ? 1.0 | ||
| 378 | - : widget.animationController.value); | 374 | + widget.animationController.value, |
| 375 | + ); | ||
| 379 | 376 | ||
| 380 | final draggableChild = !widget.enableDrag | 377 | final draggableChild = !widget.enableDrag |
| 381 | ? child | 378 | ? child |
-
Please register or login to post a comment