LucidAppTheme class
Constructors
- LucidAppTheme({required String name, required LucidThemeMode mode, required Color primary, required Color secondary, required Color background, required Color surface, required Color error, required Color onPrimary, required Color onSecondary, required Color onBackground, required Color onSurface, required Color onError, Brightness brightness = Brightness.light, Color? accent, Color? disabled, Color? hint, Color? divider, Color? shadow, Color? cardColor, Color? scaffoldBackgroundColor, double appBarElevation = 0, double cardElevation = 1, double elevatedButtonElevation = 1, double outlinedButtonElevation = 0, double textButtonElevation = 0, double borderRadius = 16.0, double cardBorderRadius = 16.0, String? fontFamily, String? displayFontFamily, Color? gradientStart, Color? gradientEnd, Color? softShadow})
-
const
- LucidAppTheme.fromJson(LucidJsonMap json)
-
factory
Properties
- accent → Color?
-
final
- appBarElevation → double
-
final
- background → Color
-
final
- borderRadius → double
-
final
- brightness → Brightness
-
final
- cardBorderRadius → double
-
final
- cardColor → Color?
-
final
- cardElevation → double
-
final
- disabled → Color?
-
final
- displayFontFamily → String?
-
Police des titres (serif élégante, charte « Or sur Nuit ») ;
null= repli sur une serif système (Georgia / Times / serif). À remplacer par une police embarquée (ex. 'Playfair Display') si le projet en bundle une.final - divider → Color?
-
final
- elevatedButtonElevation → double
-
final
- error → Color
-
final
- fontFamily → String?
-
Police du corps (sans-serif premium) ;
null= police système.final - gradientEnd → Color?
-
final
- gradientStart → Color?
-
Bornes du dégradé de surface (navy → bleu nuit) utilisé par les widgets
d'état (vide, erreur) comme fond d'icône.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hint → Color?
-
final
- mode → LucidThemeMode
-
final
- name → String
-
final
- onBackground → Color
-
final
- onError → Color
-
final
- onPrimary → Color
-
final
- onSecondary → Color
-
final
- onSurface → Color
-
final
- outlinedButtonElevation → double
-
final
- primary → Color
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scaffoldBackgroundColor → Color?
-
final
- secondary → Color
-
final
- shadow → Color?
-
final
- softShadow → Color?
-
Couleur d'ombre douce (faible opacité, grand flou) pour cartes et
boutons.
null= dérivée automatiquement selon la luminosité.final - surface → Color
-
final
- textButtonElevation → double
-
final
Methods
-
copyWith(
{String? name, LucidThemeMode? mode, Color? primary, Color? secondary, Color? background, Color? surface, Color? error, Color? onPrimary, Color? onSecondary, Color? onBackground, Color? onSurface, Color? onError, Brightness? brightness, Color? accent, Color? disabled, Color? hint, Color? divider, Color? shadow, Color? cardColor, Color? scaffoldBackgroundColor, double? appBarElevation, double? cardElevation, double? elevatedButtonElevation, double? outlinedButtonElevation, double? textButtonElevation, double? borderRadius, double? cardBorderRadius, String? fontFamily, String? displayFontFamily, Color? gradientStart, Color? gradientEnd, Color? softShadow}) → LucidAppTheme -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → LucidJsonMap -
toString(
) → String -
A string representation of this object.
override
-
toThemeData(
) → ThemeData
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override