Skip to content

Commit 4c576c5

Browse files
authored
Merge pull request #19 from yameguun/fix-error
Fix a error.
2 parents 2afb3ff + 6bb309a commit 4c576c5

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

lib/blog/blog_home_page.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ class _BlogHomePageState extends State<BlogHomePage> {
3434
),
3535
bottomNavigationBar: BottomNavigationBar(
3636
items: [
37-
BottomNavigationBarItem(icon: Icon(Icons.home), title: Text("Home")),
37+
BottomNavigationBarItem(icon: Icon(Icons.home), label: "Home"),
3838
BottomNavigationBarItem(
39-
icon: Icon(Icons.search), title: Text("Search")),
39+
icon: Icon(Icons.search), label: "Search"),
4040
BottomNavigationBarItem(
41-
icon: Icon(Icons.chat_bubble), title: Text("Chat")),
42-
BottomNavigationBarItem(icon: Icon(Icons.info), title: Text("About")),
41+
icon: Icon(Icons.chat_bubble), label: "Chat"),
42+
BottomNavigationBarItem(icon: Icon(Icons.info), label: "About"),
4343
],
4444
currentIndex: _currentIndex,
4545
onTap: _onItemTapped,

lib/chat/chat_home_page.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ class _ChatHomePageState extends State<ChatHomePage> {
3232
),
3333
bottomNavigationBar: BottomNavigationBar(
3434
items: [
35-
BottomNavigationBarItem(icon: Icon(Icons.home), title: Text("Home")),
35+
BottomNavigationBarItem(icon: Icon(Icons.home), label: "Home"),
3636
BottomNavigationBarItem(
37-
icon: Icon(Icons.search), title: Text("Search")),
37+
icon: Icon(Icons.search), label: "Search"),
3838
BottomNavigationBarItem(
39-
icon: Icon(Icons.chat_bubble), title: Text("Chat")),
40-
BottomNavigationBarItem(icon: Icon(Icons.info), title: Text("About")),
39+
icon: Icon(Icons.chat_bubble), label: "Chat"),
40+
BottomNavigationBarItem(icon: Icon(Icons.info), label: "About"),
4141
],
4242
currentIndex: _currentIndex,
4343
onTap: _onItemTapped,

lib/content/popular_courses_home_page.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ class _PopularCoursesHomePageState extends State<PopularCoursesHomePage> {
3030
),
3131
bottomNavigationBar: BottomNavigationBar(
3232
items: [
33-
BottomNavigationBarItem(icon: Icon(Icons.home), title: Text("Home")),
33+
BottomNavigationBarItem(icon: Icon(Icons.home), label: "Home"),
3434
BottomNavigationBarItem(
35-
icon: Icon(Icons.search), title: Text("Search")),
35+
icon: Icon(Icons.search), label: "Search"),
3636
BottomNavigationBarItem(
37-
icon: Icon(Icons.chat_bubble), title: Text("Chat")),
38-
BottomNavigationBarItem(icon: Icon(Icons.info), title: Text("About")),
37+
icon: Icon(Icons.chat_bubble), label: "Chat"),
38+
BottomNavigationBarItem(icon: Icon(Icons.info), label: "About"),
3939
],
4040
currentIndex: _currentIndex,
4141
onTap: _onItemTapped,

lib/shopping/shopping_home_page.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ class _ShoppingHomePageState extends State<ShoppingHomePage> {
3131
),
3232
bottomNavigationBar: BottomNavigationBar(
3333
items: [
34-
BottomNavigationBarItem(icon: Icon(Icons.home), title: Text("Home")),
34+
BottomNavigationBarItem(icon: Icon(Icons.home), label: "Home"),
3535
BottomNavigationBarItem(
36-
icon: Icon(Icons.search), title: Text("Search")),
36+
icon: Icon(Icons.search), label: "Search"),
3737
BottomNavigationBarItem(
38-
icon: Icon(Icons.chat_bubble), title: Text("Chat")),
39-
BottomNavigationBarItem(icon: Icon(Icons.info), title: Text("About")),
38+
icon: Icon(Icons.chat_bubble), label: "Chat"),
39+
BottomNavigationBarItem(icon: Icon(Icons.info), label: "About"),
4040
],
4141
currentIndex: _currentIndex,
4242
onTap: _onItemTapped,

0 commit comments

Comments
 (0)