NeumorphicThemeData class

Used with the NeumorphicTheme

NeumorphicTheme(
  theme: NeumorphicThemeData(...)
  darkTheme: : NeumorphicThemeData(...)
  child: ...
)`
``

Contains all default values used in child Neumorphic 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

NeumorphicThemeData({Color baseColor = _defaultBaseColor, double depth = _defaultDepth, NeumorphicBoxShape? boxShape, double intensity = _defaultIntensity, Color accentColor = _defaultAccent, Color variantColor = _defaultVariant, Color disabledColor = _defaultDisabledColor, Color shadowLightColor = NeumorphicColors.decorationMaxWhiteColor, Color shadowDarkColor = NeumorphicColors.decorationMaxDarkColor, Color shadowLightColorEmboss = NeumorphicColors.embossMaxWhiteColor, Color shadowDarkColorEmboss = NeumorphicColors.embossMaxDarkColor, Color defaultTextColor = _defaultTextColor, LightSource lightSource = _defaultLightSource, TextTheme textTheme = const TextTheme(), IconThemeData iconTheme = const IconThemeData(), NeumorphicStyle? buttonStyle, NeumorphicAppBarThemeData appBarTheme = const NeumorphicAppBarThemeData(), Color borderColor = NeumorphicColors.defaultBorder, double borderWidth = _defaultBorderSize, bool disableDepth = false})
const
NeumorphicThemeData.dark({Color baseColor = NeumorphicColors.darkBackground, double depth = _defaultDepth, NeumorphicBoxShape? boxShape, double intensity = _defaultIntensity, Color accentColor = _defaultAccent, TextTheme textTheme = const TextTheme(), NeumorphicStyle? buttonStyle, IconThemeData iconTheme = const IconThemeData(), NeumorphicAppBarThemeData appBarTheme = const NeumorphicAppBarThemeData(), Color variantColor = NeumorphicColors.darkVariant, Color disabledColor = NeumorphicColors.darkDisabled, Color shadowLightColor = NeumorphicColors.decorationMaxWhiteColor, Color shadowDarkColor = NeumorphicColors.decorationMaxDarkColor, Color shadowLightColorEmboss = NeumorphicColors.embossMaxWhiteColor, Color shadowDarkColorEmboss = NeumorphicColors.embossMaxDarkColor, Color defaultTextColor = NeumorphicColors.darkDefaultTextColor, LightSource lightSource = _defaultLightSource, Color borderColor = NeumorphicColors.darkDefaultBorder, double borderWidth = _defaultBorderSize, bool disableDepth = false})
const

Properties

accentColor Color
final
appBarTheme NeumorphicAppBarThemeData
final
baseColor Color
final
borderColor Color
final
borderWidth double
final
boxShape NeumorphicBoxShape
no setter
buttonStyle NeumorphicStyle?
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 neumorphic 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 neumorphic constants
no setter
lightSource LightSource
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowDarkColor Color
final
shadowDarkColorEmboss Color
final
shadowLightColor Color
final
shadowLightColorEmboss Color
final
textTheme TextTheme
Default text theme to use and apply across the app
final
variantColor Color
final

Methods

copyFrom({required NeumorphicThemeData other}) NeumorphicThemeData
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? shadowLightColorEmboss, Color? shadowDarkColorEmboss, Color? defaultTextColor, NeumorphicBoxShape? boxShape, TextTheme? textTheme, NeumorphicStyle? buttonStyle, IconThemeData? iconTheme, NeumorphicAppBarThemeData? appBarTheme, NeumorphicStyle? defaultStyle, bool? disableDepth, double? depth, double? intensity, Color? borderColor, double? borderSize, LightSource? lightSource}) NeumorphicThemeData
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