Skip to content

Commit 032dc54

Browse files
fix: Removed helper method from Scaffold (#99714)
* Update autofill.dart * fix: removed helper method Co-authored-by: Pierre-Louis Guidez <[email protected]>
1 parent c4a6ab1 commit 032dc54

File tree

1 file changed

+18
-24
lines changed

1 file changed

+18
-24
lines changed

packages/flutter/lib/src/material/scaffold.dart

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3077,17 +3077,6 @@ class _StandardBottomSheetState extends State<_StandardBottomSheet> {
30773077
return false;
30783078
}
30793079

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-
30913080
@override
30923081
Widget build(BuildContext context) {
30933082
return AnimatedBuilder(
@@ -3099,19 +3088,24 @@ class _StandardBottomSheetState extends State<_StandardBottomSheet> {
30993088
child: child,
31003089
);
31013090
},
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+
),
31153109
),
31163110
),
31173111
);

0 commit comments

Comments
 (0)