Skip to content

Commit 121f72e

Browse files
committed
feat: history page
1 parent 76644a7 commit 121f72e

File tree

5 files changed

+36
-0
lines changed

5 files changed

+36
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import 'package:flutter/material.dart';
2+
3+
class HistoryPage extends StatelessWidget {
4+
const HistoryPage({super.key});
5+
6+
@override
7+
Widget build(BuildContext context) {
8+
return const Scaffold();
9+
}
10+
}

lib/presentation/landing/components/bottom_navigation_bar.dart

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import 'package:bottom_bar/bottom_bar.dart';
22
import 'package:eva_icons_flutter/eva_icons_flutter.dart';
33
import 'package:flutter/material.dart';
44
import 'package:flutter_bloc/flutter_bloc.dart';
5+
import 'package:lucide_icons/lucide_icons.dart';
56
import 'package:qack/layout/layout_handler.dart';
67
import 'package:qack/presentation/landing/components/components.dart';
78
import 'package:qack/theme/theme.dart';
@@ -97,6 +98,7 @@ class _BottomNavBar extends StatelessWidget {
9798
border: RoundedRectangleBorder(
9899
borderRadius: BorderRadius.circular(4),
99100
),
101+
boxShadow: theme.cardShadow,
100102
itemPadding: itemPadding,
101103
textStyle: textStyle,
102104
items: [
@@ -113,6 +115,19 @@ class _BottomNavBar extends StatelessWidget {
113115
inactiveColor:
114116
navigationThemeData.inactiveNavigationTitleColor,
115117
),
118+
BottomBarItem(
119+
icon: Icon(
120+
Icons.history,
121+
size: iconSize,
122+
),
123+
title: const Text(
124+
'History',
125+
),
126+
activeColor: navigationThemeData.activeHistoryColor,
127+
activeTitleColor: navigationThemeData.activeHistoryTitleColor,
128+
inactiveColor:
129+
navigationThemeData.inactiveNavigationTitleColor,
130+
),
116131
BottomBarItem(
117132
icon: Icon(
118133
EvaIcons.settings2Outline,

lib/presentation/landing/components/cubit/bottom_navigation_bar_state.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ part of 'bottom_navigation_bar_cubit.dart';
22

33
enum SelectedPage {
44
home,
5+
history,
56
settings,
67
}
78

lib/theme/themes/light_theme.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ final class LightTheme extends BaseTheme {
9292
inactiveNavigationTitleColor: AppColors.gray700,
9393
activeHomeColor: AppColors.primary500,
9494
activeHomeTitleColor: AppColors.primary700,
95+
activeHistoryColor: AppColors.green500,
96+
activeHistoryTitleColor: AppColors.green600,
9597
activeSettingsColor: AppColors.orange500,
9698
activeSettingsTitleColor: AppColors.orange600,
9799
sideNavigationBarShadow: AppShadows.md(),

lib/theme/themes/models/navigation_theme_data.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class NavigationThemeData {
1010
required this.inactiveNavigationTitleColor,
1111
required this.activeHomeColor,
1212
required this.activeHomeTitleColor,
13+
required this.activeHistoryColor,
14+
required this.activeHistoryTitleColor,
1315
required this.activeSettingsColor,
1416
required this.activeSettingsTitleColor,
1517
required this.sideNavigationBarShadow,
@@ -27,6 +29,12 @@ class NavigationThemeData {
2729
/// Active color of home navigation title
2830
final Color activeHomeTitleColor;
2931

32+
/// Active color of history navigation item
33+
final Color activeHistoryColor;
34+
35+
/// Active color of history navigation title
36+
final Color activeHistoryTitleColor;
37+
3038
/// Active color of settings navigation item
3139
final Color activeSettingsColor;
3240

0 commit comments

Comments
 (0)