Add yellow to base colour & colour reset button in settings
This commit is contained in:
@ -38,7 +38,6 @@ class _MyAppState extends State<MyApp> {
|
||||
Widget build(BuildContext context) {
|
||||
return Consumer3<LocaleProvider, ThemeProvider, ColorProvider>(
|
||||
builder: (context, localeProvider, themeProvider, colorProvider, child) {
|
||||
// customAccentColor est toujours là si tu veux l'utiliser pour d'autres éléments
|
||||
final customAccentColor = colorProvider.accentColor;
|
||||
|
||||
return MaterialApp(
|
||||
@ -55,32 +54,32 @@ class _MyAppState extends State<MyApp> {
|
||||
Locale('fr', ''),
|
||||
],
|
||||
theme: ThemeData(
|
||||
primaryColor: Colors.white,
|
||||
primaryColor: Colors.yellow[700],
|
||||
colorScheme: ColorScheme.light(
|
||||
primary: Colors.blue, // Couleur primaire fixe pour le mode clair
|
||||
primary: Colors.yellow[700]!,
|
||||
secondary: Colors.teal.shade400,
|
||||
surface: Colors.white,
|
||||
background: Colors.white,
|
||||
error: Colors.red.shade700,
|
||||
onPrimary: Colors.white,
|
||||
onPrimary: Colors.black87,
|
||||
onSecondary: Colors.white,
|
||||
onSurface: Colors.black87,
|
||||
onBackground: Colors.black87,
|
||||
),
|
||||
scaffoldBackgroundColor: Colors.white,
|
||||
appBarTheme: const AppBarTheme(
|
||||
backgroundColor: Color(0xFFF5F5F5),
|
||||
appBarTheme: AppBarTheme(
|
||||
backgroundColor: Colors.yellow[700],
|
||||
foregroundColor: Colors.black87,
|
||||
elevation: 0.5,
|
||||
iconTheme: IconThemeData(color: Colors.black87),
|
||||
titleTextStyle: TextStyle(
|
||||
iconTheme: const IconThemeData(color: Colors.black87),
|
||||
titleTextStyle: const TextStyle(
|
||||
color: Colors.black,
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
floatingActionButtonTheme: FloatingActionButtonThemeData(
|
||||
backgroundColor: customAccentColor,
|
||||
backgroundColor: customAccentColor,
|
||||
foregroundColor: Colors.white,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(30.0),
|
||||
|
||||
Reference in New Issue
Block a user