From 95aa8fbb9ea3fc7fb8cbbba62d22daddb23cd5e3 Mon Sep 17 00:00:00 2001 From: chandansgowda Date: Tue, 7 Mar 2023 20:37:30 +0530 Subject: [PATCH] FIX: Replaced title with label in BottomNavigationBarItem --- lib/pages/ChatListScreen.dart | 6 +++--- lib/pages/DeviceListScreen.dart | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/pages/ChatListScreen.dart b/lib/pages/ChatListScreen.dart index 582ebc5..4f76f85 100644 --- a/lib/pages/ChatListScreen.dart +++ b/lib/pages/ChatListScreen.dart @@ -58,15 +58,15 @@ class _ChatListScreenState extends State { items: [ BottomNavigationBarItem( icon: Icon(Icons.message), - title: Text("Chats"), + label: "Chats" ), BottomNavigationBarItem( icon: Icon(Icons.group_work), - title: Text("Available"), + label: "Available" ), BottomNavigationBarItem( icon: Icon(Icons.account_box), - title: Text("Profile"), + label: "Profile" ), ], ), diff --git a/lib/pages/DeviceListScreen.dart b/lib/pages/DeviceListScreen.dart index db8c3c0..8c5c430 100644 --- a/lib/pages/DeviceListScreen.dart +++ b/lib/pages/DeviceListScreen.dart @@ -91,15 +91,15 @@ class _DevicesListScreenState extends State { items: [ BottomNavigationBarItem( icon: Icon(Icons.message), - title: Text("Chats"), + label: "Chats" ), BottomNavigationBarItem( icon: Icon(Icons.group_work), - title: Text("Available"), + label: "Available" ), BottomNavigationBarItem( icon: Icon(Icons.account_box), - title: Text("Profile"), + label: "Profile" ), ], currentIndex: _selectedIndex,