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
617ca627
Unverified
Commit
617ca627
authored
Feb 22, 2019
by
Hans Muller
Committed by
GitHub
Feb 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Material] Expand BottomNavigationBar API (reprise) (#28159)
parent
b96ae03b
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
856 additions
and
208 deletions
+856
-208
bottom_navigation_demo.dart
...ter_gallery/lib/demo/material/bottom_navigation_demo.dart
+1
-0
bottom_navigation_bar.dart
packages/flutter/lib/src/material/bottom_navigation_bar.dart
+327
-202
bottom_navigation_bar_item.dart
...s/flutter/lib/src/widgets/bottom_navigation_bar_item.dart
+3
-3
bottom_navigation_bar_test.dart
...ges/flutter/test/material/bottom_navigation_bar_test.dart
+525
-3
No files found.
examples/flutter_gallery/lib/demo/material/bottom_navigation_demo.dart
View file @
617ca627
...
@@ -189,6 +189,7 @@ class _BottomNavigationDemoState extends State<BottomNavigationDemo>
...
@@ -189,6 +189,7 @@ class _BottomNavigationDemoState extends State<BottomNavigationDemo>
.
toList
(),
.
toList
(),
currentIndex:
_currentIndex
,
currentIndex:
_currentIndex
,
type:
_type
,
type:
_type
,
//iconSize: 4.0,
onTap:
(
int
index
)
{
onTap:
(
int
index
)
{
setState
(()
{
setState
(()
{
_navigationViews
[
_currentIndex
].
controller
.
reverse
();
_navigationViews
[
_currentIndex
].
controller
.
reverse
();
...
...
packages/flutter/lib/src/material/bottom_navigation_bar.dart
View file @
617ca627
This diff is collapsed.
Click to expand it.
packages/flutter/lib/src/widgets/bottom_navigation_bar_item.dart
View file @
617ca627
...
@@ -9,8 +9,8 @@ import 'framework.dart';
...
@@ -9,8 +9,8 @@ import 'framework.dart';
/// An interactive button within either material's [BottomNavigationBar]
/// An interactive button within either material's [BottomNavigationBar]
/// or the iOS themed [CupertinoTabBar] with an icon and title.
/// or the iOS themed [CupertinoTabBar] with an icon and title.
///
///
/// This class is rarely used in isolation.
Commonly embedded in one of the
/// This class is rarely used in isolation.
It is typically embedded in one of
/// bottom navigation widgets above.
///
the
bottom navigation widgets above.
///
///
/// See also:
/// See also:
///
///
...
@@ -67,7 +67,7 @@ class BottomNavigationBarItem {
...
@@ -67,7 +67,7 @@ class BottomNavigationBarItem {
///
///
/// If the navigation bar's type is [BottomNavigationBarType.shifting], then
/// If the navigation bar's type is [BottomNavigationBarType.shifting], then
/// the entire bar is flooded with the [backgroundColor] when this item is
/// the entire bar is flooded with the [backgroundColor] when this item is
/// tapped.
/// tapped.
This will override [BottomNavigationBar.backgroundColor].
///
///
/// Not used for [CupertinoTabBar]. Control the invariant bar color directly
/// Not used for [CupertinoTabBar]. Control the invariant bar color directly
/// via [CupertinoTabBar.backgroundColor].
/// via [CupertinoTabBar.backgroundColor].
...
...
packages/flutter/test/material/bottom_navigation_bar_test.dart
View file @
617ca627
This diff is collapsed.
Click to expand it.
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