Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
modal_bottom_sheet
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jaime Blasco
2020-04-10 10:47:33 +0200
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
c5f1d1e17e4b6619143b17b5fc1579602669bb36
c5f1d1e1
2 parents
862f2dc6
fb74a1cd
Merge branch 'master' of
https://github.com/jamesblasco/modal_bottom_sheet
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
example/lib/main.dart
lib/src/bottom_sheet.dart
example/lib/main.dart
View file @
c5f1d1e
...
...
@@ -165,7 +165,7 @@ class _MyHomePageState extends State<MyHomePage> {
ModalFit
(
scrollController:
scrollController
),
)),
ListTile
(
title:
Text
(
'Cupertino Small Modal for
z
ed to expand'
),
title:
Text
(
'Cupertino Small Modal for
c
ed to expand'
),
onTap:
()
=>
showCupertinoModalBottomSheet
(
expand:
true
,
context:
context
,
...
...
@@ -194,7 +194,7 @@ class _MyHomePageState extends State<MyHomePage> {
scrollController:
scrollController
),
)),
ListTile
(
title:
Text
(
'Cupertino Navigator + Scroll + WillScope'
),
title:
Text
(
'Cupertino Navigator + Scroll + Will
Pop
Scope'
),
onTap:
()
=>
showCupertinoModalBottomSheet
(
expand:
true
,
context:
context
,
...
...
@@ -204,7 +204,7 @@ class _MyHomePageState extends State<MyHomePage> {
scrollController:
scrollController
),
)),
ListTile
(
title:
Text
(
'Cupertino Modal with WillScope'
),
title:
Text
(
'Cupertino Modal with Will
Pop
Scope'
),
onTap:
()
=>
showCupertinoModalBottomSheet
(
expand:
true
,
context:
context
,
...
...
lib/src/bottom_sheet.dart
View file @
c5f1d1e
...
...
@@ -30,13 +30,11 @@ typedef WidgetWithChildBuilder = Widget Function(
/// See also:
///
/// * [showMaterialModalBottomSheet] which can be used to display a modal bottom
/// sheet with Material appareance.
/// * [showCupertinoModalBottomSheet] which can be used to display a modal bottom
/// sheet with Cupertino appareance.
class
ModalBottomSheet
extends
StatefulWidget
{
/// Creates a bottom sheet.
///
/// Typically, bottom sheets are created implicitly by
/// [ScaffoldState.showBottomSheet], for persistent bottom sheets, or by
/// [showModalBottomSheet], for modal bottom sheets.
const
ModalBottomSheet
({
Key
key
,
this
.
animationController
,
...
...
@@ -85,8 +83,6 @@ class ModalBottomSheet extends StatefulWidget {
/// A builder for the contents of the sheet.
///
/// The bottom sheet will wrap the widget produced by this builder in a
/// [Material] widget.
final
ScrollWidgetBuilder
builder
;
/// If true, the bottom sheet can be dragged up and down and dismissed by
...
...
Please
register
or
login
to post a comment