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
Dan Reynolds
2021-12-22 08:44:45 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a877fa88e9c07bcf2ada43d813dd0f48765f96ff
a877fa88
1 parent
ab1dc56e
expose route settings on all show modal functions
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
lib/src/bottom_sheet_route.dart
lib/src/bottom_sheets/bar_bottom_sheet.dart
lib/src/bottom_sheets/material_bottom_sheet.dart
lib/src/bottom_sheet_route.dart
View file @
a877fa8
...
...
@@ -245,6 +245,7 @@ Future<T?> showCustomModalBottomSheet<T>({
bool
isDismissible
=
true
,
bool
enableDrag
=
true
,
Duration
?
duration
,
RouteSettings
?
settings
,
})
async
{
assert
(
context
!=
null
);
assert
(
builder
!=
null
);
...
...
@@ -275,6 +276,7 @@ Future<T?> showCustomModalBottomSheet<T>({
enableDrag:
enableDrag
,
animationCurve:
animationCurve
,
duration:
duration
,
settings:
settings
,
));
return
result
;
}
...
...
lib/src/bottom_sheets/bar_bottom_sheet.dart
View file @
a877fa8
...
...
@@ -88,6 +88,7 @@ Future<T?> showBarModalBottomSheet<T>({
bool
enableDrag
=
true
,
Widget
?
topControl
,
Duration
?
duration
,
RouteSettings
?
settings
,
})
async
{
assert
(
context
!=
null
);
assert
(
builder
!=
null
);
...
...
@@ -117,6 +118,7 @@ Future<T?> showBarModalBottomSheet<T>({
enableDrag:
enableDrag
,
animationCurve:
animationCurve
,
duration:
duration
,
settings:
settings
,
));
return
result
;
}
...
...
lib/src/bottom_sheets/material_bottom_sheet.dart
View file @
a877fa8
...
...
@@ -20,6 +20,7 @@ Future<T?> showMaterialModalBottomSheet<T>({
bool
isDismissible
=
true
,
bool
enableDrag
=
true
,
Duration
?
duration
,
RouteSettings
?
settings
,
})
async
{
assert
(
context
!=
null
);
assert
(
builder
!=
null
);
...
...
@@ -50,6 +51,7 @@ Future<T?> showMaterialModalBottomSheet<T>({
enableDrag:
enableDrag
,
animationCurve:
animationCurve
,
duration:
duration
,
settings:
settings
,
));
return
result
;
}
...
...
Please
register
or
login
to post a comment