From b8484e348e1fb27d5a91fea31b19edebc96cfcfa Mon Sep 17 00:00:00 2001 From: rami-a <2364772+rami-a@users.noreply.github.com> Date: Mon, 12 Aug 2019 12:26:54 -0400 Subject: [PATCH] Update documentation for bottom sheets to accurately reflect usage (#37964) --- packages/flutter/lib/src/material/bottom_sheet.dart | 9 ++++++--- packages/flutter/lib/src/material/scaffold.dart | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/flutter/lib/src/material/bottom_sheet.dart b/packages/flutter/lib/src/material/bottom_sheet.dart index 7ede1d9864..8dbf54bec4 100644 --- a/packages/flutter/lib/src/material/bottom_sheet.dart +++ b/packages/flutter/lib/src/material/bottom_sheet.dart @@ -410,10 +410,12 @@ class _ModalBottomSheetRoute extends PopupRoute { /// /// See also: /// -/// * [BottomSheet], which is the widget normally returned by the function -/// passed as the `builder` argument to [showModalBottomSheet]. +/// * [BottomSheet], which becomes the parent of the widget returned by the +/// function passed as the `builder` argument to [showModalBottomSheet]. /// * [showBottomSheet] and [ScaffoldState.showBottomSheet], for showing /// non-modal bottom sheets. +/// * [DraggableScrollableSheet], which allows you to create a bottom sheet +/// that grows and then becomes scrollable once it reaches its maximum size. /// * Future showModalBottomSheet({ @required BuildContext context, @@ -471,7 +473,8 @@ Future showModalBottomSheet({ /// /// See also: /// -/// * [BottomSheet], which is the widget typically returned by the `builder`. +/// * [BottomSheet], which becomes the parent of the widget returned by the +/// `builder`. /// * [showModalBottomSheet], which can be used to display a modal bottom /// sheet. /// * [Scaffold.of], for information about how to obtain the [BuildContext]. diff --git a/packages/flutter/lib/src/material/scaffold.dart b/packages/flutter/lib/src/material/scaffold.dart index e081c7c49e..a126e28589 100644 --- a/packages/flutter/lib/src/material/scaffold.dart +++ b/packages/flutter/lib/src/material/scaffold.dart @@ -1737,7 +1737,8 @@ class ScaffoldState extends State with TickerProviderStateMixin { /// /// See also: /// - /// * [BottomSheet], which is the widget typically returned by the `builder`. + /// * [BottomSheet], which becomes the parent of the widget returned by the + /// `builder`. /// * [showBottomSheet], which calls this method given a [BuildContext]. /// * [showModalBottomSheet], which can be used to display a modal bottom /// sheet.