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
0d667859
Unverified
Commit
0d667859
authored
Jan 04, 2019
by
Hans Muller
Committed by
GitHub
Jan 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update material spec references in BottomSheet et al., Scaffold (#26042)
parent
acdd9206
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
bottom_sheet.dart
packages/flutter/lib/src/material/bottom_sheet.dart
+7
-5
scaffold.dart
packages/flutter/lib/src/material/scaffold.dart
+1
-5
No files found.
packages/flutter/lib/src/material/bottom_sheet.dart
View file @
0d667859
...
...
@@ -40,9 +40,11 @@ const double _kCloseProgressThreshold = 0.5;
///
/// See also:
///
/// * [ScaffoldState.showBottomSheet]
/// * [showModalBottomSheet]
/// * <https://material.google.com/components/bottom-sheets.html>
/// * [showBottomSheet] and [ScaffoldState.showBottomSheet], for showing
/// non-modal "persistent" bottom sheets.
/// * [showModalBottomSheet], which can be used to display a modal bottom
/// sheet.
/// * <https://material.io/design/components/sheets-bottom.html>
class
BottomSheet
extends
StatefulWidget
{
/// Creates a bottom sheet.
///
...
...
@@ -319,7 +321,7 @@ class _ModalBottomSheetRoute<T> extends PopupRoute<T> {
/// passed as the `builder` argument to [showModalBottomSheet].
/// * [showBottomSheet] and [ScaffoldState.showBottomSheet], for showing
/// non-modal bottom sheets.
/// * <https://material.
google.com/components/bottom-sheets.html#bottom-sheets-modal-bottom-sheets
>
/// * <https://material.
io/design/components/sheets-bottom.html#modal-bottom-sheet
>
Future
<
T
>
showModalBottomSheet
<
T
>({
@required
BuildContext
context
,
@required
WidgetBuilder
builder
,
...
...
@@ -370,7 +372,7 @@ Future<T> showModalBottomSheet<T>({
/// * [showModalBottomSheet], which can be used to display a modal bottom
/// sheet.
/// * [Scaffold.of], for information about how to obtain the [BuildContext].
/// * <https://material.
google.com/components/bottom-sheets.html#bottom-sheets-persistent-bottom-sheets
>
/// * <https://material.
io/design/components/sheets-bottom.html#standard-bottom-sheet
>
PersistentBottomSheetController
<
T
>
showBottomSheet
<
T
>({
@required
BuildContext
context
,
@required
WidgetBuilder
builder
,
...
...
packages/flutter/lib/src/material/scaffold.dart
View file @
0d667859
...
...
@@ -779,10 +779,6 @@ class Scaffold extends StatefulWidget {
///
/// The [persistentFooterButtons] are rendered above the
/// [bottomNavigationBar] but below the [body].
///
/// See also:
///
/// * <https://material.google.com/components/buttons.html#buttons-persistent-footer-buttons>
final
List
<
Widget
>
persistentFooterButtons
;
/// A panel displayed to the side of the [body], often hidden on mobile
...
...
@@ -1336,7 +1332,7 @@ class ScaffoldState extends State<Scaffold> with TickerProviderStateMixin {
/// * [showModalBottomSheet], which can be used to display a modal bottom
/// sheet.
/// * [Scaffold.of], for information about how to obtain the [ScaffoldState].
/// * <https://material.
google.com/components/bottom-sheets.html#bottom-sheets-persistent-bottom-sheets
>
/// * <https://material.
io/design/components/sheets-bottom.html#standard-bottom-sheet
>
PersistentBottomSheetController
<
T
>
showBottomSheet
<
T
>(
WidgetBuilder
builder
)
{
_closeCurrentBottomSheet
();
final
AnimationController
controller
=
BottomSheet
.
createAnimationController
(
this
)
...
...
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