diff --git a/em2rp/lib/utils/colors.dart b/em2rp/lib/utils/colors.dart index d5df0c8..55e662d 100644 --- a/em2rp/lib/utils/colors.dart +++ b/em2rp/lib/utils/colors.dart @@ -3,6 +3,6 @@ import 'package:flutter/material.dart'; class AppColors { static const Color noir = Color(0xFF000000); // Noir static const Color blanc = Color(0xFFFFFFFF); // Blanc - static const Color rouge = Color(0xFFFF0000); // Rouge + static const Color rouge = Color.fromARGB(255, 159, 0, 0); // Rouge static const Color gris = Color(0xFF808080); // Gris (gris moyen) } diff --git a/em2rp/lib/views/my_account_page.dart b/em2rp/lib/views/my_account_page.dart index 71aea11..e28a111 100644 --- a/em2rp/lib/views/my_account_page.dart +++ b/em2rp/lib/views/my_account_page.dart @@ -137,11 +137,10 @@ class _MyAccountPageState extends State { Widget build(BuildContext context) { final userProvider = Provider.of( context, - ); // Get UserProvider instance + ); return Scaffold( - appBar: - AppBar(title: const Text('Mon Compte')), // More user-friendly title + appBar: AppBar(title: const Text('Mon Compte')), drawer: MainDrawer( currentPage: '/my_account', userProvider: userProvider, diff --git a/em2rp/lib/views/widgets/auth/login_button.dart b/em2rp/lib/views/widgets/auth/login_button.dart index c6d846b..8d505e0 100644 --- a/em2rp/lib/views/widgets/auth/login_button.dart +++ b/em2rp/lib/views/widgets/auth/login_button.dart @@ -16,6 +16,7 @@ class LoginButtonWidget extends StatelessWidget { return ElevatedButton( onPressed: isLoading ? null : onPressed, style: ElevatedButton.styleFrom( + backgroundColor: AppColors.rouge, padding: const EdgeInsets.symmetric(vertical: 15), textStyle: const TextStyle(fontSize: 18), ), diff --git a/em2rp/lib/views/widgets/inputs/styled_text_field.dart b/em2rp/lib/views/widgets/inputs/styled_text_field.dart index b7ccbe8..36e0650 100644 --- a/em2rp/lib/views/widgets/inputs/styled_text_field.dart +++ b/em2rp/lib/views/widgets/inputs/styled_text_field.dart @@ -6,11 +6,11 @@ class StyledTextField extends StatelessWidget { final bool enabled; const StyledTextField({ - Key? key, + super.key, required this.labelText, required this.controller, this.enabled = true, - }) : super(key: key); + }); @override Widget build(BuildContext context) { diff --git a/em2rp/lib/views/widgets/nav/main_drawer.dart b/em2rp/lib/views/widgets/nav/main_drawer.dart index 07a0daf..4bc2677 100644 --- a/em2rp/lib/views/widgets/nav/main_drawer.dart +++ b/em2rp/lib/views/widgets/nav/main_drawer.dart @@ -90,7 +90,7 @@ class MainDrawer extends StatelessWidget { leading: const Icon(Icons.account_circle), // Lien vers "Mon Compte" title: const Text('Mon Compte'), - selected: currentPage == '/my_acount', + selected: currentPage == '/my_account', selectedColor: AppColors.rouge, onTap: () { Navigator.pop(context);