feat: Update theme colors for improved visibility in light and dark modes across multiple components

This commit is contained in:
Dayron
2025-11-01 18:05:04 +01:00
parent 0a1a2ffde5
commit 459047e2c4
4 changed files with 35 additions and 8 deletions

View File

@@ -134,8 +134,6 @@ class _HomePageState extends State<HomePage> {
return Scaffold(
appBar: AppBar(
title: Text(titles[_currentIndex]),
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
foregroundColor: Colors.white,
),
drawer: Drawer(
child: ListView(
@@ -143,11 +141,18 @@ class _HomePageState extends State<HomePage> {
children: [
DrawerHeader(
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.inversePrimary,
color: Theme.of(context).brightness == Brightness.dark
? Colors.black
: Colors.white,
),
child: const Text(
child: Text(
"Travel Mate",
style: TextStyle(color: Colors.white, fontSize: 24),
style: TextStyle(
color: Theme.of(context).brightness == Brightness.dark
? Colors.white
: Colors.black,
fontSize: 24,
),
),
),
_buildDrawerItem(icon: Icons.home, title: "Mes voyages", index: 0),