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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _wrapBottomSheet(Widget bottomSheet) {
|
|
||||||
return Semantics(
|
|
||||||
container: true,
|
|
||||||
onDismiss: close,
|
|
||||||
child: NotificationListener<DraggableScrollableNotification>(
|
|
||||||
onNotification: extentChanged,
|
|
||||||
child: bottomSheet,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return AnimatedBuilder(
|
return AnimatedBuilder(
|
||||||
@ -3099,19 +3088,24 @@ class _StandardBottomSheetState extends State<_StandardBottomSheet> {
|
|||||||
child: child,
|
child: child,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: _wrapBottomSheet(
|
child: Semantics(
|
||||||
BottomSheet(
|
container: true,
|
||||||
animationController: widget.animationController,
|
onDismiss: close,
|
||||||
enableDrag: widget.enableDrag,
|
child: NotificationListener<DraggableScrollableNotification>(
|
||||||
onDragStart: _handleDragStart,
|
onNotification: extentChanged,
|
||||||
onDragEnd: _handleDragEnd,
|
child: BottomSheet(
|
||||||
onClosing: widget.onClosing!,
|
animationController: widget.animationController,
|
||||||
builder: widget.builder,
|
enableDrag: widget.enableDrag,
|
||||||
backgroundColor: widget.backgroundColor,
|
onDragStart: _handleDragStart,
|
||||||
elevation: widget.elevation,
|
onDragEnd: _handleDragEnd,
|
||||||
shape: widget.shape,
|
onClosing: widget.onClosing!,
|
||||||
clipBehavior: widget.clipBehavior,
|
builder: widget.builder,
|
||||||
constraints: widget.constraints,
|
backgroundColor: widget.backgroundColor,
|
||||||
|
elevation: widget.elevation,
|
||||||
|
shape: widget.shape,
|
||||||
|
clipBehavior: widget.clipBehavior,
|
||||||
|
constraints: widget.constraints,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user