From 3eb221fcc827f68028c89e38b001ec3fd5aebdf1 Mon Sep 17 00:00:00 2001 From: Shubham Ingale Date: Tue, 24 Dec 2024 16:10:25 +0530 Subject: [PATCH] fix: app bar colors for reports_view.dart --- lib/app/modules/home/views/tas_list_item.dart | 2 +- lib/app/modules/reports/views/reports_view.dart | 8 +++----- lib/app/utils/constants/taskwarrior_colors.dart | 5 +++++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/app/modules/home/views/tas_list_item.dart b/lib/app/modules/home/views/tas_list_item.dart index 949acbde..e8420b81 100644 --- a/lib/app/modules/home/views/tas_list_item.dart +++ b/lib/app/modules/home/views/tas_list_item.dart @@ -29,8 +29,8 @@ class TaskListItem extends StatelessWidget { @override Widget build(BuildContext context) { - // ignore: unused_element TaskwarriorColorTheme tColors = Theme.of(context).extension()!; + // ignore: unused_element void saveChanges() async { var now = DateTime.now().toUtc(); modify.save( diff --git a/lib/app/modules/reports/views/reports_view.dart b/lib/app/modules/reports/views/reports_view.dart index 698d9cb0..55c59608 100644 --- a/lib/app/modules/reports/views/reports_view.dart +++ b/lib/app/modules/reports/views/reports_view.dart @@ -44,14 +44,12 @@ class ReportsView extends GetView { preferredSize: Size.fromHeight(height * 0.1), child: TabBar( controller: controller.tabController, - labelColor: TaskWarriorColors.white, - labelStyle: GoogleFonts.poppins( - fontWeight: TaskWarriorFonts.medium, - fontSize: TaskWarriorFonts.fontSizeSmall, - ), unselectedLabelStyle: GoogleFonts.poppins( fontWeight: TaskWarriorFonts.light, + color: TaskWarriorColors.appBarUnSelectedIconsColorForReports ), + indicatorColor: tColors.purpleShade, + labelColor: TaskWarriorColors.white, onTap: (value) { controller.selectedIndex.value = value; }, diff --git a/lib/app/utils/constants/taskwarrior_colors.dart b/lib/app/utils/constants/taskwarrior_colors.dart index 48be2b14..19110e2f 100644 --- a/lib/app/utils/constants/taskwarrior_colors.dart +++ b/lib/app/utils/constants/taskwarrior_colors.dart @@ -18,6 +18,11 @@ class TaskWarriorColors { static Color deepPurpleAccent = Colors.deepPurpleAccent; static Color deepPurple = Colors.deepPurple; + // colors irrespective of theme + static Color appBarColor = const Color(0xFF000000); + static Color appBarTextColor = white; + static Color appBarUnSelectedIconsColorForReports = const Color(0xFF48454E); + // Dark Theme Color Palette static Color kprimaryBackgroundColor = Palette.kToDark.shade200; static Color ksecondaryBackgroundColor =