EmergentThemeData class

Used with the EmergentTheme

EmergentTheme(
  theme: EmergentThemeData(...)
  darkTheme: : EmergentThemeData(...)
  child: ...
)`
``

Contains all default values used in child Emergent Elements as
default colors : baseColor, accentColor, variantColor
default depth & intensities, used to generate white / dark shadows
default lightsource, used to calculate the angle of the shadow
@see [LightSource]
Annotations

Constructors

EmergentThemeData({Color baseColor = _defaultBaseColor, double depth = _defaultDepth, EmergentBoxShape? boxShape, double intensity = _defaultIntensity, Color accentColor = _defaultAccent, Color variantColor = _defaultVariant, Color disabledColor = _defaultDisabledColor, Color shadowLightColor = EmergentColors.decorationMaxWhiteColor, Color shadowDarkColor = EmergentColors.decorationMaxDarkColor, Color shadowLightColorHc = EmergentColors.hcMaxWhiteColor, Color shadowDarkColorHc = EmergentColors.hcMaxDarkColor, Color defaultTextColor = _defaultTextColor, LightSource lightSource = _defaultLightSource, TextTheme textTheme = const TextTheme(), IconThemeData iconTheme = const IconThemeData(), EmergentStyle? buttonStyle, EmergentAppBarThemeData appBarTheme = const EmergentAppBarThemeData(), Color borderColor = EmergentColors.defaultBorder, double borderWidth = _defaultBorderSize, bool disableDepth = false})
const
EmergentThemeData.dark({Color baseColor = EmergentColors.darkBackground, double depth = _defaultDepth, EmergentBoxShape? boxShape, double intensity = _defaultIntensity, Color accentColor = _defaultAccent, TextTheme textTheme = const TextTheme(), EmergentStyle? buttonStyle, IconThemeData iconTheme = const IconThemeData(), EmergentAppBarThemeData appBarTheme = const EmergentAppBarThemeData(), Color variantColor = EmergentColors.darkVariant, Color disabledColor = EmergentColors.darkDisabled, Color shadowLightColor = EmergentColors.decorationMaxWhiteColor, Color shadowDarkColor = EmergentColors.decorationMaxDarkColor, Color shadowLightColorHc = EmergentColors.hcMaxWhiteColor, Color shadowDarkColorHc = EmergentColors.hcMaxDarkColor, Color defaultTextColor = EmergentColors.darkDefaultTextColor, LightSource lightSource = _defaultLightSource, Color borderColor = EmergentColors.darkDefaultBorder, double borderWidth = _defaultBorderSize, bool disableDepth = false})
const

Properties

accentColor Color
final
appBarTheme EmergentAppBarThemeData
final
baseColor Color
final
borderColor Color
final
borderWidth double
final
boxShape EmergentBoxShape
no setter
buttonStyle EmergentStyle?
Default button style to use and apply across the app
final
defaultTextColor Color
final
depth double
Get this theme's depth, clamp to min/max emergent constants
no setter
disabledColor Color
final
disableDepth bool
final
hashCode int
The hash code for this object.
no setteroverride
iconTheme IconThemeData
Default icon theme to use and apply across the app
final
intensity double
Get this theme's intensity, clamp to min/max emergent constants
no setter
lightSource LightSource
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowDarkColor Color
final
shadowDarkColorHc Color
final
shadowLightColor Color
final
shadowLightColorHc Color
final
textTheme TextTheme
Default text theme to use and apply across the app
final
variantColor Color
final

Methods

copyFrom({required EmergentThemeData other}) EmergentThemeData
Create a copy of this theme With possibly new values given from the given second theme
copyWith({Color? baseColor, Color? accentColor, Color? variantColor, Color? disabledColor, Color? shadowLightColor, Color? shadowDarkColor, Color? shadowLightColorHc, Color? shadowDarkColorHc, Color? defaultTextColor, EmergentBoxShape? boxShape, TextTheme? textTheme, EmergentStyle? buttonStyle, IconThemeData? iconTheme, EmergentAppBarThemeData? appBarTheme, EmergentStyle? defaultStyle, bool? disableDepth, double? depth, double? intensity, Color? borderColor, double? borderSize, LightSource? lightSource}) EmergentThemeData
Create a copy of this theme With possibly new values given from this method's arguments
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override