fix: Removed helper method from Scaffold (#99714)
* Update autofill.dart * fix: removed helper method Co-authored-by: Pierre-Louis Guidez <plg@google.com>
This commit is contained in:
parent
c4a6ab1626
commit
032dc5428f
@ -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,8 +3088,12 @@ class _StandardBottomSheetState extends State<_StandardBottomSheet> {
|
||||
child: child,
|
||||
);
|
||||
},
|
||||
child: _wrapBottomSheet(
|
||||
BottomSheet(
|
||||
child: Semantics(
|
||||
container: true,
|
||||
onDismiss: close,
|
||||
child: NotificationListener<DraggableScrollableNotification>(
|
||||
onNotification: extentChanged,
|
||||
child: BottomSheet(
|
||||
animationController: widget.animationController,
|
||||
enableDrag: widget.enableDrag,
|
||||
onDragStart: _handleDragStart,
|
||||
@ -3114,6 +3107,7 @@ class _StandardBottomSheetState extends State<_StandardBottomSheet> {
|
||||
constraints: widget.constraints,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user