Skip to content

Commit 3eb221f

Browse files
committed
fix: app bar colors for reports_view.dart
1 parent 50511f3 commit 3eb221f

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

lib/app/modules/home/views/tas_list_item.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class TaskListItem extends StatelessWidget {
2929

3030
@override
3131
Widget build(BuildContext context) {
32-
// ignore: unused_element
3332
TaskwarriorColorTheme tColors = Theme.of(context).extension<TaskwarriorColorTheme>()!;
33+
// ignore: unused_element
3434
void saveChanges() async {
3535
var now = DateTime.now().toUtc();
3636
modify.save(

lib/app/modules/reports/views/reports_view.dart

+3-5
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,12 @@ class ReportsView extends GetView<ReportsController> {
4444
preferredSize: Size.fromHeight(height * 0.1),
4545
child: TabBar(
4646
controller: controller.tabController,
47-
labelColor: TaskWarriorColors.white,
48-
labelStyle: GoogleFonts.poppins(
49-
fontWeight: TaskWarriorFonts.medium,
50-
fontSize: TaskWarriorFonts.fontSizeSmall,
51-
),
5247
unselectedLabelStyle: GoogleFonts.poppins(
5348
fontWeight: TaskWarriorFonts.light,
49+
color: TaskWarriorColors.appBarUnSelectedIconsColorForReports
5450
),
51+
indicatorColor: tColors.purpleShade,
52+
labelColor: TaskWarriorColors.white,
5553
onTap: (value) {
5654
controller.selectedIndex.value = value;
5755
},

lib/app/utils/constants/taskwarrior_colors.dart

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ class TaskWarriorColors {
1818
static Color deepPurpleAccent = Colors.deepPurpleAccent;
1919
static Color deepPurple = Colors.deepPurple;
2020

21+
// colors irrespective of theme
22+
static Color appBarColor = const Color(0xFF000000);
23+
static Color appBarTextColor = white;
24+
static Color appBarUnSelectedIconsColorForReports = const Color(0xFF48454E);
25+
2126
// Dark Theme Color Palette
2227
static Color kprimaryBackgroundColor = Palette.kToDark.shade200;
2328
static Color ksecondaryBackgroundColor =

0 commit comments

Comments
 (0)