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
2dc26ba9
Commit
2dc26ba9
authored
Sep 22, 2016
by
Dragoș Tiselice
Committed by
GitHub
Sep 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed BottomNavigationBar to handle dark theme. (#6006)
Changed the fixed type to better support the dark theme.
parent
6a5e6581
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
bottom_navigation_bar.dart
packages/flutter/lib/src/material/bottom_navigation_bar.dart
+7
-2
No files found.
packages/flutter/lib/src/material/bottom_navigation_bar.dart
View file @
2dc26ba9
...
@@ -17,6 +17,7 @@ import 'icon_theme_data.dart';
...
@@ -17,6 +17,7 @@ import 'icon_theme_data.dart';
import
'ink_well.dart'
;
import
'ink_well.dart'
;
import
'material.dart'
;
import
'material.dart'
;
import
'theme.dart'
;
import
'theme.dart'
;
import
'typography.dart'
;
const
double
_kActiveMaxWidth
=
168.0
;
const
double
_kActiveMaxWidth
=
168.0
;
const
double
_kInactiveMaxWidth
=
96.0
;
const
double
_kInactiveMaxWidth
=
96.0
;
...
@@ -302,9 +303,13 @@ class BottomNavigationBarState extends State<BottomNavigationBar> {
...
@@ -302,9 +303,13 @@ class BottomNavigationBarState extends State<BottomNavigationBar> {
case
BottomNavigationBarType
.
fixed
:
case
BottomNavigationBarType
.
fixed
:
final
List
<
Widget
>
children
=
<
Widget
>[];
final
List
<
Widget
>
children
=
<
Widget
>[];
final
ThemeData
themeData
=
Theme
.
of
(
context
);
final
ThemeData
themeData
=
Theme
.
of
(
context
);
final
TextTheme
textTheme
=
themeData
.
textTheme
;
final
ColorTween
colorTween
=
new
ColorTween
(
final
ColorTween
colorTween
=
new
ColorTween
(
begin:
Colors
.
black54
,
begin:
textTheme
.
caption
.
color
,
end:
config
.
fixedColor
??
themeData
.
primaryColor
end:
config
.
fixedColor
??
(
themeData
.
brightness
==
Brightness
.
light
?
themeData
.
primaryColor
:
themeData
.
accentColor
)
);
);
for
(
int
i
=
0
;
i
<
config
.
labels
.
length
;
i
+=
1
)
{
for
(
int
i
=
0
;
i
<
config
.
labels
.
length
;
i
+=
1
)
{
...
...
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