@@ -3077,17 +3077,6 @@ class _StandardBottomSheetState extends State<_StandardBottomSheet> {
3077
3077
return false ;
3078
3078
}
3079
3079
3080
- Widget _wrapBottomSheet (Widget bottomSheet) {
3081
- return Semantics (
3082
- container: true ,
3083
- onDismiss: close,
3084
- child: NotificationListener <DraggableScrollableNotification >(
3085
- onNotification: extentChanged,
3086
- child: bottomSheet,
3087
- ),
3088
- );
3089
- }
3090
-
3091
3080
@override
3092
3081
Widget build (BuildContext context) {
3093
3082
return AnimatedBuilder (
@@ -3099,19 +3088,24 @@ class _StandardBottomSheetState extends State<_StandardBottomSheet> {
3099
3088
child: child,
3100
3089
);
3101
3090
},
3102
- child: _wrapBottomSheet (
3103
- BottomSheet (
3104
- animationController: widget.animationController,
3105
- enableDrag: widget.enableDrag,
3106
- onDragStart: _handleDragStart,
3107
- onDragEnd: _handleDragEnd,
3108
- onClosing: widget.onClosing! ,
3109
- builder: widget.builder,
3110
- backgroundColor: widget.backgroundColor,
3111
- elevation: widget.elevation,
3112
- shape: widget.shape,
3113
- clipBehavior: widget.clipBehavior,
3114
- constraints: widget.constraints,
3091
+ child: Semantics (
3092
+ container: true ,
3093
+ onDismiss: close,
3094
+ child: NotificationListener <DraggableScrollableNotification >(
3095
+ onNotification: extentChanged,
3096
+ child: BottomSheet (
3097
+ animationController: widget.animationController,
3098
+ enableDrag: widget.enableDrag,
3099
+ onDragStart: _handleDragStart,
3100
+ onDragEnd: _handleDragEnd,
3101
+ onClosing: widget.onClosing! ,
3102
+ builder: widget.builder,
3103
+ backgroundColor: widget.backgroundColor,
3104
+ elevation: widget.elevation,
3105
+ shape: widget.shape,
3106
+ clipBehavior: widget.clipBehavior,
3107
+ constraints: widget.constraints,
3108
+ ),
3115
3109
),
3116
3110
),
3117
3111
);
0 commit comments