From 032dc5428f35eb651c02530cd1bd7d7f59e6f2ec Mon Sep 17 00:00:00 2001 From: Alberto Date: Fri, 3 Jun 2022 10:45:57 +0200 Subject: [PATCH] fix: Removed helper method from Scaffold (#99714) * Update autofill.dart * fix: removed helper method Co-authored-by: Pierre-Louis Guidez --- .../flutter/lib/src/material/scaffold.dart | 42 ++++++++----------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/packages/flutter/lib/src/material/scaffold.dart b/packages/flutter/lib/src/material/scaffold.dart index 9d5c753bf9..7831159f6e 100644 --- a/packages/flutter/lib/src/material/scaffold.dart +++ b/packages/flutter/lib/src/material/scaffold.dart @@ -3077,17 +3077,6 @@ class _StandardBottomSheetState extends State<_StandardBottomSheet> { return false; } - Widget _wrapBottomSheet(Widget bottomSheet) { - return Semantics( - container: true, - onDismiss: close, - child: NotificationListener( - 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( + 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, + ), ), ), );