modif my account

This commit is contained in:
PC-PAUL\paulf 2025-03-10 20:00:31 +01:00
parent 471d6c5eef
commit b6f169e5f7
5 changed files with 7 additions and 7 deletions

View File

@ -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)
}

View File

@ -137,11 +137,10 @@ class _MyAccountPageState extends State<MyAccountPage> {
Widget build(BuildContext context) {
final userProvider = Provider.of<UserProvider>(
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,

View File

@ -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),
),

View File

@ -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) {

View File

@ -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);