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
178b4b83
Unverified
Commit
178b4b83
authored
Nov 18, 2020
by
Yash Johri
Committed by
GitHub
Nov 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated tests in material/bottom_navigation_bar_test.dart (#66670)
parent
61460d25
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
43 deletions
+43
-43
bottom_tab_bar_test.dart
packages/flutter/test/cupertino/bottom_tab_bar_test.dart
+28
-28
tab_scaffold_test.dart
...es/flutter/test/cupertino/material/tab_scaffold_test.dart
+3
-3
nav_bar_transition_test.dart
packages/flutter/test/cupertino/nav_bar_transition_test.dart
+2
-2
scaffold_test.dart
packages/flutter/test/cupertino/scaffold_test.dart
+6
-6
tab_scaffold_test.dart
packages/flutter/test/cupertino/tab_scaffold_test.dart
+4
-4
No files found.
packages/flutter/test/cupertino/bottom_tab_bar_test.dart
View file @
178b4b83
...
@@ -35,7 +35,7 @@ Future<void> main() async {
...
@@ -35,7 +35,7 @@ Future<void> main() async {
items:
<
BottomNavigationBarItem
>[
items:
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
],
],
));
));
...
@@ -53,11 +53,11 @@ Future<void> main() async {
...
@@ -53,11 +53,11 @@ Future<void> main() async {
items:
<
BottomNavigationBarItem
>[
items:
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 2'
)
,
label:
'Tab 2'
,
),
),
],
],
currentIndex:
1
,
currentIndex:
1
,
...
@@ -119,11 +119,11 @@ Future<void> main() async {
...
@@ -119,11 +119,11 @@ Future<void> main() async {
items:
<
BottomNavigationBarItem
>[
items:
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 2'
)
,
label:
'Tab 2'
,
),
),
],
],
currentIndex:
1
,
currentIndex:
1
,
...
@@ -160,11 +160,11 @@ Future<void> main() async {
...
@@ -160,11 +160,11 @@ Future<void> main() async {
items:
<
BottomNavigationBarItem
>[
items:
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 2'
)
,
label:
'Tab 2'
,
),
),
],
],
currentIndex:
1
,
currentIndex:
1
,
...
@@ -197,11 +197,11 @@ Future<void> main() async {
...
@@ -197,11 +197,11 @@ Future<void> main() async {
items:
<
BottomNavigationBarItem
>[
items:
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 2'
)
,
label:
'Tab 2'
,
),
),
],
],
currentIndex:
1
,
currentIndex:
1
,
...
@@ -228,11 +228,11 @@ Future<void> main() async {
...
@@ -228,11 +228,11 @@ Future<void> main() async {
items:
<
BottomNavigationBarItem
>[
items:
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 2'
)
,
label:
'Tab 2'
,
),
),
],
],
currentIndex:
1
,
currentIndex:
1
,
...
@@ -264,12 +264,12 @@ Future<void> main() async {
...
@@ -264,12 +264,12 @@ Future<void> main() async {
items:
<
BottomNavigationBarItem
>[
items:
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
inactiveIcon
),
icon:
ImageIcon
(
inactiveIcon
),
activeIcon:
ImageIcon
(
activeIcon
),
activeIcon:
ImageIcon
(
activeIcon
),
title:
const
Text
(
'Tab 2'
)
,
label:
'Tab 2'
,
),
),
],
],
currentIndex:
1
,
currentIndex:
1
,
...
@@ -292,11 +292,11 @@ Future<void> main() async {
...
@@ -292,11 +292,11 @@ Future<void> main() async {
items:
<
BottomNavigationBarItem
>[
items:
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Aka'
)
,
label:
'Aka'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Shiro'
)
,
label:
'Shiro'
,
),
),
],
],
);
);
...
@@ -333,11 +333,11 @@ Future<void> main() async {
...
@@ -333,11 +333,11 @@ Future<void> main() async {
items:
<
BottomNavigationBarItem
>[
items:
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 2'
)
,
label:
'Tab 2'
,
),
),
],
],
),
),
...
@@ -351,11 +351,11 @@ Future<void> main() async {
...
@@ -351,11 +351,11 @@ Future<void> main() async {
items:
<
BottomNavigationBarItem
>[
items:
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 2'
)
,
label:
'Tab 2'
,
),
),
],
],
backgroundColor:
const
Color
(
0xFFFFFFFF
),
// Opaque white.
backgroundColor:
const
Color
(
0xFFFFFFFF
),
// Opaque white.
...
@@ -374,11 +374,11 @@ Future<void> main() async {
...
@@ -374,11 +374,11 @@ Future<void> main() async {
items:
<
BottomNavigationBarItem
>[
items:
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 2'
)
,
label:
'Tab 2'
,
),
),
],
],
currentIndex:
1
,
currentIndex:
1
,
...
@@ -399,11 +399,11 @@ Future<void> main() async {
...
@@ -399,11 +399,11 @@ Future<void> main() async {
items:
<
BottomNavigationBarItem
>[
items:
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 2'
)
,
label:
'Tab 2'
,
),
),
],
],
),
),
...
@@ -439,7 +439,7 @@ Future<void> main() async {
...
@@ -439,7 +439,7 @@ Future<void> main() async {
icon:
ImageIcon
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
)),
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
)),
),
),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
icon:
ImageIcon
(
...
@@ -471,13 +471,13 @@ Future<void> main() async {
...
@@ -471,13 +471,13 @@ Future<void> main() async {
icon:
ImageIcon
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
)),
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
)),
),
),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
)),
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
)),
),
),
title:
const
Text
(
'Tab 2'
)
,
label:
'Tab 2'
,
),
),
],
],
),
),
...
@@ -497,13 +497,13 @@ Future<void> main() async {
...
@@ -497,13 +497,13 @@ Future<void> main() async {
icon:
ImageIcon
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
)),
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
)),
),
),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
)),
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
)),
),
),
title:
const
Text
(
'Tab 2'
)
,
label:
'Tab 2'
,
),
),
],
],
backgroundColor:
const
Color
(
0xFFFFFFFF
),
// Opaque white.
backgroundColor:
const
Color
(
0xFFFFFFFF
),
// Opaque white.
...
...
packages/flutter/test/cupertino/material/tab_scaffold_test.dart
View file @
178b4b83
...
@@ -287,7 +287,7 @@ void main() {
...
@@ -287,7 +287,7 @@ void main() {
tabBar:
CupertinoTabBar
(
tabBar:
CupertinoTabBar
(
items:
List
<
BottomNavigationBarItem
>.
generate
(
items:
List
<
BottomNavigationBarItem
>.
generate
(
10
,
10
,
(
int
i
)
=>
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
Text
(
'
$i
'
)
),
(
int
i
)
=>
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
label:
'
$i
'
),
),
),
),
),
tabBuilder:
(
BuildContext
context
,
int
index
)
=>
const
Text
(
'content'
),
tabBuilder:
(
BuildContext
context
,
int
index
)
=>
const
Text
(
'content'
),
...
@@ -325,11 +325,11 @@ CupertinoTabBar _buildTabBar({ int selectedTab = 0 }) {
...
@@ -325,11 +325,11 @@ CupertinoTabBar _buildTabBar({ int selectedTab = 0 }) {
items:
<
BottomNavigationBarItem
>[
items:
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 2'
)
,
label:
'Tab 2'
,
),
),
],
],
currentIndex:
selectedTab
,
currentIndex:
selectedTab
,
...
...
packages/flutter/test/cupertino/nav_bar_transition_test.dart
View file @
178b4b83
...
@@ -425,11 +425,11 @@ void main() {
...
@@ -425,11 +425,11 @@ void main() {
items:
const
<
BottomNavigationBarItem
>[
items:
const
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
Icon
(
CupertinoIcons
.
search
),
icon:
Icon
(
CupertinoIcons
.
search
),
title:
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
Icon
(
CupertinoIcons
.
settings
),
icon:
Icon
(
CupertinoIcons
.
settings
),
title:
Text
(
'Tab 2'
)
,
label:
'Tab 2'
,
),
),
],
],
),
),
...
...
packages/flutter/test/cupertino/scaffold_test.dart
View file @
178b4b83
...
@@ -211,11 +211,11 @@ void main() {
...
@@ -211,11 +211,11 @@ void main() {
items:
<
BottomNavigationBarItem
>[
items:
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 2'
)
,
label:
'Tab 2'
,
),
),
],
],
),
),
...
@@ -251,11 +251,11 @@ void main() {
...
@@ -251,11 +251,11 @@ void main() {
items:
<
BottomNavigationBarItem
>[
items:
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 2'
)
,
label:
'Tab 2'
,
),
),
],
],
),
),
...
@@ -301,11 +301,11 @@ void main() {
...
@@ -301,11 +301,11 @@ void main() {
items:
<
BottomNavigationBarItem
>[
items:
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 2'
)
,
label:
'Tab 2'
,
),
),
],
],
),
),
...
...
packages/flutter/test/cupertino/tab_scaffold_test.dart
View file @
178b4b83
...
@@ -45,7 +45,7 @@ void main() {
...
@@ -45,7 +45,7 @@ void main() {
BottomNavigationBarItem
tabGenerator
(
int
index
)
{
BottomNavigationBarItem
tabGenerator
(
int
index
)
{
return
BottomNavigationBarItem
(
return
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
Text
(
'Tab
${index + 1}
'
)
,
label:
'Tab
${index + 1}
'
,
);
);
}
}
...
@@ -1079,7 +1079,7 @@ void main() {
...
@@ -1079,7 +1079,7 @@ void main() {
tabBar:
CupertinoTabBar
(
tabBar:
CupertinoTabBar
(
items:
List
<
BottomNavigationBarItem
>.
generate
(
items:
List
<
BottomNavigationBarItem
>.
generate
(
10
,
10
,
(
int
i
)
=>
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
Text
(
'
$i
'
)
),
(
int
i
)
=>
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
label:
'
$i
'
),
),
),
),
),
tabBuilder:
(
BuildContext
context
,
int
index
)
=>
const
Text
(
'content'
),
tabBuilder:
(
BuildContext
context
,
int
index
)
=>
const
Text
(
'content'
),
...
@@ -1221,11 +1221,11 @@ CupertinoTabBar _buildTabBar({ int selectedTab = 0 }) {
...
@@ -1221,11 +1221,11 @@ CupertinoTabBar _buildTabBar({ int selectedTab = 0 }) {
items:
<
BottomNavigationBarItem
>[
items:
<
BottomNavigationBarItem
>[
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 1'
)
,
label:
'Tab 1'
,
),
),
BottomNavigationBarItem
(
BottomNavigationBarItem
(
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
icon:
ImageIcon
(
MemoryImage
(
Uint8List
.
fromList
(
kTransparentImage
))),
title:
const
Text
(
'Tab 2'
)
,
label:
'Tab 2'
,
),
),
],
],
currentIndex:
selectedTab
,
currentIndex:
selectedTab
,
...
...
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