Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
b8484e34
Unverified
Commit
b8484e34
authored
Aug 12, 2019
by
rami-a
Committed by
GitHub
Aug 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update documentation for bottom sheets to accurately reflect usage (#37964)
parent
7d154e88
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
bottom_sheet.dart
packages/flutter/lib/src/material/bottom_sheet.dart
+6
-3
scaffold.dart
packages/flutter/lib/src/material/scaffold.dart
+2
-1
No files found.
packages/flutter/lib/src/material/bottom_sheet.dart
View file @
b8484e34
...
@@ -410,10 +410,12 @@ class _ModalBottomSheetRoute<T> extends PopupRoute<T> {
...
@@ -410,10 +410,12 @@ class _ModalBottomSheetRoute<T> extends PopupRoute<T> {
///
///
/// See also:
/// See also:
///
///
/// * [BottomSheet], which
is the widget normally returned by the function
/// * [BottomSheet], which
becomes the parent of the widget returned by the
/// passed as the `builder` argument to [showModalBottomSheet].
///
function
passed as the `builder` argument to [showModalBottomSheet].
/// * [showBottomSheet] and [ScaffoldState.showBottomSheet], for showing
/// * [showBottomSheet] and [ScaffoldState.showBottomSheet], for showing
/// non-modal bottom sheets.
/// 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.
/// * <https://material.io/design/components/sheets-bottom.html#modal-bottom-sheet>
/// * <https://material.io/design/components/sheets-bottom.html#modal-bottom-sheet>
Future
<
T
>
showModalBottomSheet
<
T
>({
Future
<
T
>
showModalBottomSheet
<
T
>({
@required
BuildContext
context
,
@required
BuildContext
context
,
...
@@ -471,7 +473,8 @@ Future<T> showModalBottomSheet<T>({
...
@@ -471,7 +473,8 @@ Future<T> showModalBottomSheet<T>({
///
///
/// See also:
/// 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
/// * [showModalBottomSheet], which can be used to display a modal bottom
/// sheet.
/// sheet.
/// * [Scaffold.of], for information about how to obtain the [BuildContext].
/// * [Scaffold.of], for information about how to obtain the [BuildContext].
...
...
packages/flutter/lib/src/material/scaffold.dart
View file @
b8484e34
...
@@ -1737,7 +1737,8 @@ class ScaffoldState extends State<Scaffold> with TickerProviderStateMixin {
...
@@ -1737,7 +1737,8 @@ class ScaffoldState extends State<Scaffold> with TickerProviderStateMixin {
///
///
/// See also:
/// 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].
/// * [showBottomSheet], which calls this method given a [BuildContext].
/// * [showModalBottomSheet], which can be used to display a modal bottom
/// * [showModalBottomSheet], which can be used to display a modal bottom
/// sheet.
/// sheet.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment