added send functionality to icon.

This commit is contained in:
Joshua
2024-07-10 13:44:16 -06:00
parent 097b99e0e6
commit 711991c7bf
13 changed files with 363 additions and 281 deletions
+9 -6
View File
@@ -28,13 +28,14 @@ BottomNavigationBarItem _buildNavigationItem(int index) {
iconData = Icons.settings;
break;
case 1:
label = 'Home';
iconData = Icons.home;
label = 'Chats';
iconData = Icons.chat;
break;
}
return BottomNavigationBarItem(
icon: Icon(iconData),
label: label,
backgroundColor: AppTheme.lightest,
);
}
@@ -63,15 +64,15 @@ class MyApp extends ConsumerWidget {
final selectedIndex = ref.watch(selectedIndexProvider);
return MaterialApp(
title: 'App',
title: 'One AI',
home: Scaffold(
backgroundColor: AppTheme.secondaryBackground,
backgroundColor: AppTheme.medium,
appBar: AppBar(
backgroundColor: AppTheme.secondaryBackground,
automaticallyImplyLeading: false,
title: const Text(
'App',
style: AppTheme.headlineLarge,
'One AI',
style: AppTheme.displayLarge,
),
actions: const [],
centerTitle: false,
@@ -79,6 +80,8 @@ class MyApp extends ConsumerWidget {
),
body: _pages[selectedIndex],
bottomNavigationBar: BottomNavigationBar(
backgroundColor: AppTheme.darkest,
selectedItemColor: AppTheme.lightest,
// Set the number of items to the length of the pages list
items: List.generate(_pages.length, (index) => _buildNavigationItem(index)),
currentIndex: selectedIndex,