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 { class AppColors {
static const Color noir = Color(0xFF000000); // Noir static const Color noir = Color(0xFF000000); // Noir
static const Color blanc = Color(0xFFFFFFFF); // Blanc 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) static const Color gris = Color(0xFF808080); // Gris (gris moyen)
} }

View File

@ -137,11 +137,10 @@ class _MyAccountPageState extends State<MyAccountPage> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
final userProvider = Provider.of<UserProvider>( final userProvider = Provider.of<UserProvider>(
context, context,
); // Get UserProvider instance );
return Scaffold( return Scaffold(
appBar: appBar: AppBar(title: const Text('Mon Compte')),
AppBar(title: const Text('Mon Compte')), // More user-friendly title
drawer: MainDrawer( drawer: MainDrawer(
currentPage: '/my_account', currentPage: '/my_account',
userProvider: userProvider, userProvider: userProvider,

View File

@ -16,6 +16,7 @@ class LoginButtonWidget extends StatelessWidget {
return ElevatedButton( return ElevatedButton(
onPressed: isLoading ? null : onPressed, onPressed: isLoading ? null : onPressed,
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
backgroundColor: AppColors.rouge,
padding: const EdgeInsets.symmetric(vertical: 15), padding: const EdgeInsets.symmetric(vertical: 15),
textStyle: const TextStyle(fontSize: 18), textStyle: const TextStyle(fontSize: 18),
), ),

View File

@ -6,11 +6,11 @@ class StyledTextField extends StatelessWidget {
final bool enabled; final bool enabled;
const StyledTextField({ const StyledTextField({
Key? key, super.key,
required this.labelText, required this.labelText,
required this.controller, required this.controller,
this.enabled = true, this.enabled = true,
}) : super(key: key); });
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {

View File

@ -90,7 +90,7 @@ class MainDrawer extends StatelessWidget {
leading: const Icon(Icons.account_circle), leading: const Icon(Icons.account_circle),
// Lien vers "Mon Compte" // Lien vers "Mon Compte"
title: const Text('Mon Compte'), title: const Text('Mon Compte'),
selected: currentPage == '/my_acount', selected: currentPage == '/my_account',
selectedColor: AppColors.rouge, selectedColor: AppColors.rouge,
onTap: () { onTap: () {
Navigator.pop(context); Navigator.pop(context);