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
5d0c1b86
Unverified
Commit
5d0c1b86
authored
Jan 18, 2019
by
MH Johnson
Committed by
GitHub
Jan 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Material] Inline the single Theme.of(context) call in BAB (#26765)
parent
b531b8f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
bottom_app_bar.dart
packages/flutter/lib/src/material/bottom_app_bar.dart
+1
-2
No files found.
packages/flutter/lib/src/material/bottom_app_bar.dart
View file @
5d0c1b86
...
...
@@ -116,7 +116,6 @@ class _BottomAppBarState extends State<BottomAppBar> {
@override
Widget
build
(
BuildContext
context
)
{
final
ThemeData
theme
=
Theme
.
of
(
context
);
final
BottomAppBarTheme
babTheme
=
BottomAppBarTheme
.
of
(
context
);
final
NotchedShape
notchedShape
=
widget
.
shape
??
babTheme
.
shape
;
final
CustomClipper
<
Path
>
clipper
=
notchedShape
!=
null
...
...
@@ -129,7 +128,7 @@ class _BottomAppBarState extends State<BottomAppBar> {
return
PhysicalShape
(
clipper:
clipper
,
elevation:
widget
.
elevation
??
babTheme
.
elevation
??
_defaultElevation
,
color:
widget
.
color
??
babTheme
.
color
??
theme
.
bottomAppBarColor
,
color:
widget
.
color
??
babTheme
.
color
??
Theme
.
of
(
context
)
.
bottomAppBarColor
,
clipBehavior:
widget
.
clipBehavior
,
child:
Material
(
type:
MaterialType
.
transparency
,
...
...
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