Set the color of the bottom navigation bar statically to the main color

This commit is contained in:
Roland Geider
2023-04-23 13:09:31 +02:00
parent 95cf21a74c
commit f16a8daa72
2 changed files with 5 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ import 'package:wger/screens/gallery_screen.dart';
import 'package:wger/screens/nutritional_plans_screen.dart';
import 'package:wger/screens/weight_screen.dart';
import 'package:wger/screens/workout_plans_screen.dart';
import 'package:wger/theme/theme.dart';
class HomeTabsScreen extends StatefulWidget {
static const routeName = '/dashboard2';
@@ -182,6 +183,9 @@ class _HomeTabsScreenState extends State<HomeTabsScreen> with SingleTickerProvid
currentIndex: _selectedIndex,
onTap: _onItemTapped,
showUnselectedLabels: false,
selectedItemColor: Colors.white,
unselectedItemColor: wgerPrimaryColorLight,
backgroundColor: wgerPrimaryColor,
),
);
}

View File

@@ -23,6 +23,7 @@ import 'package:table_calendar/table_calendar.dart';
const Color wgerPrimaryColor = Color(0xff2a4c7d);
const Color wgerPrimaryButtonColor = Color(0xff266dd3);
const Color wgerPrimaryColorLight = Color(0xff94B2DB);
const Color wgerSecondaryColor = Color(0xffe63946);
const Color wgerSecondaryColorLight = Color(0xffF6B4BA);
const Color wgerTextMuted = Colors.black38;