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
Noor Dawod
2020-11-06 10:18:07 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
940ec583d2fbf321e3d2da9f3e875555a4c422b2
940ec583
1 parent
3018a40b
Stop using shadowThemeOnly:true in Theme.of().
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
lib/src/bottom_sheets/cupertino_bottom_sheet.dart
lib/src/bottom_sheets/material_bottom_sheet.dart
lib/src/bottom_sheets/cupertino_bottom_sheet.dart
View file @
940ec58
...
...
@@ -341,7 +341,8 @@ class CupertinoScaffold extends StatefulWidget {
assert
(
useRootNavigator
!=
null
);
assert
(
enableDrag
!=
null
);
assert
(
debugCheckHasMediaQuery
(
context
));
final
isCupertinoApp
=
Theme
.
of
(
context
,
shadowThemeOnly:
true
)
==
null
;
final
isCupertinoApp
=
context
.
findAncestorWidgetOfExactType
<
CupertinoApp
>()
!=
null
;
var
barrierLabel
=
''
;
if
(!
isCupertinoApp
)
{
assert
(
debugCheckHasMaterialLocalizations
(
context
));
...
...
lib/src/bottom_sheets/material_bottom_sheet.dart
View file @
940ec58
...
...
@@ -39,7 +39,7 @@ Future<T> showMaterialModalBottomSheet<T>({
elevation:
elevation
,
shape:
shape
,
clipBehavior:
clipBehavior
,
theme:
Theme
.
of
(
context
,
shadowThemeOnly:
true
),
theme:
Theme
.
of
(
context
),
),
secondAnimationController:
secondAnimation
,
bounce:
bounce
,
...
...
Please
register
or
login
to post a comment