47 lines
1.4 KiB
Dart
47 lines
1.4 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
/// Thème visuel de l'application Laverie.
|
|
class AppTheme {
|
|
AppTheme._();
|
|
|
|
static const Color _primary = Color(0xFF1565C0);
|
|
static const Color _secondary = Color(0xFF26A69A);
|
|
|
|
static ThemeData get light {
|
|
final colorScheme = ColorScheme.fromSeed(
|
|
seedColor: _primary,
|
|
secondary: _secondary,
|
|
brightness: Brightness.light,
|
|
);
|
|
|
|
return ThemeData(
|
|
useMaterial3: true,
|
|
colorScheme: colorScheme,
|
|
appBarTheme: AppBarTheme(
|
|
centerTitle: true,
|
|
backgroundColor: colorScheme.primary,
|
|
foregroundColor: colorScheme.onPrimary,
|
|
elevation: 0,
|
|
),
|
|
cardTheme: CardThemeData(
|
|
elevation: 1,
|
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
|
|
),
|
|
inputDecorationTheme: InputDecorationTheme(
|
|
border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),
|
|
filled: true,
|
|
),
|
|
elevatedButtonTheme: ElevatedButtonThemeData(
|
|
style: ElevatedButton.styleFrom(
|
|
minimumSize: const Size.fromHeight(48),
|
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
|
|
),
|
|
),
|
|
floatingActionButtonTheme: FloatingActionButtonThemeData(
|
|
backgroundColor: colorScheme.secondary,
|
|
foregroundColor: colorScheme.onSecondary,
|
|
),
|
|
);
|
|
}
|
|
}
|