Refactoring
This commit is contained in:
@@ -32,6 +32,65 @@ class AppTheme {
|
||||
static const Color borderColor = Color(0xFFE0E0E0);
|
||||
static const Color borderLight = Color(0xFFF5F5F5);
|
||||
static const Color dividerColor = Color(0xFFBDBDBD);
|
||||
|
||||
// Couleurs Material 3 supplémentaires pour les composants unifiés
|
||||
static const Color outline = Color(0xFFE0E0E0);
|
||||
static const Color surfaceVariant = Color(0xFFF5F5F5);
|
||||
static const Color onSurfaceVariant = Color(0xFF757575);
|
||||
|
||||
// Tokens de design unifiés
|
||||
static const double borderRadiusSmall = 8.0;
|
||||
static const double borderRadiusMedium = 12.0;
|
||||
static const double borderRadiusLarge = 16.0;
|
||||
static const double borderRadiusXLarge = 20.0;
|
||||
|
||||
static const double spacingXSmall = 4.0;
|
||||
static const double spacingSmall = 8.0;
|
||||
static const double spacingMedium = 16.0;
|
||||
static const double spacingLarge = 24.0;
|
||||
static const double spacingXLarge = 32.0;
|
||||
|
||||
static const double elevationSmall = 1.0;
|
||||
static const double elevationMedium = 2.0;
|
||||
static const double elevationLarge = 4.0;
|
||||
static const double elevationXLarge = 8.0;
|
||||
|
||||
// Styles de texte unifiés
|
||||
static const TextStyle headlineSmall = TextStyle(
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: textPrimary,
|
||||
);
|
||||
|
||||
static const TextStyle titleMedium = TextStyle(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: textPrimary,
|
||||
);
|
||||
|
||||
static const TextStyle bodyMedium = TextStyle(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.normal,
|
||||
color: textPrimary,
|
||||
);
|
||||
|
||||
static const TextStyle bodySmall = TextStyle(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.normal,
|
||||
color: textSecondary,
|
||||
);
|
||||
|
||||
static const TextStyle titleSmall = TextStyle(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: textPrimary,
|
||||
);
|
||||
|
||||
static const TextStyle bodyLarge = TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.normal,
|
||||
color: textPrimary,
|
||||
);
|
||||
|
||||
// Thème clair
|
||||
static ThemeData get lightTheme {
|
||||
|
||||
Reference in New Issue
Block a user