Unverified Commit 032dc542 authored by Alberto's avatar Alberto Committed by GitHub

fix: Removed helper method from Scaffold (#99714)

* Update autofill.dart

* fix: removed helper method
Co-authored-by: 's avatarPierre-Louis Guidez <plg@google.com>
parent c4a6ab16
......@@ -3077,17 +3077,6 @@ class _StandardBottomSheetState extends State<_StandardBottomSheet> {
return false;
}
Widget _wrapBottomSheet(Widget bottomSheet) {
return Semantics(
container: true,
onDismiss: close,
child: NotificationListener<DraggableScrollableNotification>(
onNotification: extentChanged,
child: bottomSheet,
),
);
}
@override
Widget build(BuildContext context) {
return AnimatedBuilder(
......@@ -3099,19 +3088,24 @@ class _StandardBottomSheetState extends State<_StandardBottomSheet> {
child: child,
);
},
child: _wrapBottomSheet(
BottomSheet(
animationController: widget.animationController,
enableDrag: widget.enableDrag,
onDragStart: _handleDragStart,
onDragEnd: _handleDragEnd,
onClosing: widget.onClosing!,
builder: widget.builder,
backgroundColor: widget.backgroundColor,
elevation: widget.elevation,
shape: widget.shape,
clipBehavior: widget.clipBehavior,
constraints: widget.constraints,
child: Semantics(
container: true,
onDismiss: close,
child: NotificationListener<DraggableScrollableNotification>(
onNotification: extentChanged,
child: BottomSheet(
animationController: widget.animationController,
enableDrag: widget.enableDrag,
onDragStart: _handleDragStart,
onDragEnd: _handleDragEnd,
onClosing: widget.onClosing!,
builder: widget.builder,
backgroundColor: widget.backgroundColor,
elevation: widget.elevation,
shape: widget.shape,
clipBehavior: widget.clipBehavior,
constraints: widget.constraints,
),
),
),
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment