@@ -624,8 +624,10 @@ class _ModalBottomSheetState<T> extends State<_ModalBottomSheet<T>> {
624624/// The [enableDrag] parameter specifies whether the bottom sheet can be
625625/// dragged up and down and dismissed by swiping downwards.
626626///
627- /// The [useSafeArea] parameter specifies whether a [SafeArea] is inserted. Defaults to false.
628- /// If false, no SafeArea is added and the top padding is consumed using [MediaQuery.removePadding] .
627+ /// The [useSafeArea] parameter specifies whether the sheet will avoid system
628+ /// intrusions on the top, left, and right. If false, no SafeArea is added
629+ /// and the top padding is consumed using [MediaQuery.removePadding] .
630+ /// Defaults to false.
629631///
630632/// The optional [backgroundColor] , [elevation] , [shape] , [clipBehavior] ,
631633/// [constraints] and [transitionAnimationController]
@@ -783,12 +785,18 @@ class ModalBottomSheetRoute<T> extends PopupRoute<T> {
783785 /// {@macro flutter.widgets.DisplayFeatureSubScreen.anchorPoint}
784786 final Offset ? anchorPoint;
785787
786- /// If useSafeArea is true, a [SafeArea] is inserted .
788+ /// Whether to avoid system intrusions on the top, left, and right .
787789 ///
788- /// If useSafeArea is false, the bottom sheet is aligned to the bottom of the page
789- /// and isn't exposed to the top padding of the MediaQuery .
790+ /// If true, a [SafeArea] is inserted to keep the bottom sheet away from
791+ /// system intrusions at the top, left, and right sides of the screen .
790792 ///
791- /// Default is false.
793+ /// If false, the bottom sheet isn't exposed to the top padding of the
794+ /// MediaQuery.
795+ ///
796+ /// In either case, the bottom sheet extends all the way to the bottom of
797+ /// the screen, including any system intrusions.
798+ ///
799+ /// The default is false.
792800 final bool useSafeArea;
793801
794802 /// {@template flutter.material.ModalBottomSheetRoute.barrierOnTapHint}
@@ -871,11 +879,8 @@ class ModalBottomSheetRoute<T> extends PopupRoute<T> {
871879 ),
872880 );
873881
874- // If useSafeArea is true, a SafeArea is inserted.
875- // If useSafeArea is false, the bottom sheet is aligned to the bottom of the page
876- // and isn't exposed to the top padding of the MediaQuery.
877882 final Widget bottomSheet = useSafeArea
878- ? SafeArea (child: content)
883+ ? SafeArea (bottom : false , child: content)
879884 : MediaQuery .removePadding (
880885 context: context,
881886 removeTop: true ,
0 commit comments