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
bierbaumtim
2020-05-31 22:47:29 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5209c49209352fcf0e6723cf2a3f6fa75ce595f6
5209c492
1 parent
0dfcc15c
fix barrierLabel from #7 in showCustomModalBottomSheet
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
lib/src/bottom_sheet_route.dart
lib/src/bottom_sheet_route.dart
View file @
5209c49
...
...
@@ -234,6 +234,13 @@ Future<T> showCustomModalBottomSheet<T>({
assert
(
enableDrag
!=
null
);
assert
(
debugCheckHasMediaQuery
(
context
));
assert
(
debugCheckHasMaterialLocalizations
(
context
));
final
hasMaterialLocalizations
=
Localizations
.
of
<
MaterialLocalizations
>(
context
,
MaterialLocalizations
)
!=
null
;
final
barrierLabel
=
hasMaterialLocalizations
?
MaterialLocalizations
.
of
(
context
).
modalBarrierDismissLabel
:
''
;
final
result
=
await
Navigator
.
of
(
context
,
rootNavigator:
useRootNavigator
)
.
push
(
ModalBottomSheetRoute
<
T
>(
builder:
builder
,
...
...
@@ -241,7 +248,7 @@ Future<T> showCustomModalBottomSheet<T>({
containerBuilder:
containerWidget
,
secondAnimationController:
secondAnimation
,
expanded:
expand
,
barrierLabel:
MaterialLocalizations
.
of
(
context
).
modalBarrierDismiss
Label
,
barrierLabel:
barrier
Label
,
isDismissible:
isDismissible
,
modalBarrierColor:
barrierColor
,
enableDrag:
enableDrag
,
...
...
Please
register
or
login
to post a comment