NeumorphismThemeData class
Used with the NeumorphicTheme
NeumorphicTheme(
theme: NeumorphismThemeData(...)
darkTheme: : NeumorphismThemeData(...)
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
- NeumorphismThemeData({Color baseColor = _defaultBaseColor, double depth = _defaultDepth, NeumorphismBoxShape? boxShape, double intensity = _defaultIntensity, Color accentColor = _defaultAccent, Color variantColor = _defaultVariant, Color disabledColor = _defaultDisabledColor, Color shadowLightColor = NeumorphismColors.decorationMaxWhiteColor, Color shadowDarkColor = NeumorphismColors.decorationMaxDarkColor, Color shadowLightColorEmboss = NeumorphismColors.embossMaxWhiteColor, Color shadowDarkColorEmboss = NeumorphismColors.embossMaxDarkColor, Color defaultTextColor = _defaultTextColor, LightSource lightSource = _defaultLightSource, TextTheme textTheme = const TextTheme(), IconThemeData iconTheme = const IconThemeData(), NeumorphismStyle? buttonStyle, NeumorphismAppBarThemeData appBarTheme = const NeumorphismAppBarThemeData(), Color borderColor = NeumorphismColors.defaultBorder, double borderWidth = _defaultBorderSize, bool disableDepth = false})
-
const
- NeumorphismThemeData.dark({Color baseColor = NeumorphismColors.darkBackground, double depth = _defaultDepth, NeumorphismBoxShape? boxShape, double intensity = _defaultIntensity, Color accentColor = _defaultAccent, TextTheme textTheme = const TextTheme(), NeumorphismStyle? buttonStyle, IconThemeData iconTheme = const IconThemeData(), NeumorphismAppBarThemeData appBarTheme = const NeumorphismAppBarThemeData(), Color variantColor = NeumorphismColors.darkVariant, Color disabledColor = NeumorphismColors.darkDisabled, Color shadowLightColor = NeumorphismColors.decorationMaxWhiteColor, Color shadowDarkColor = NeumorphismColors.decorationMaxDarkColor, Color shadowLightColorEmboss = NeumorphismColors.embossMaxWhiteColor, Color shadowDarkColorEmboss = NeumorphismColors.embossMaxDarkColor, Color defaultTextColor = NeumorphismColors.darkDefaultTextColor, LightSource lightSource = _defaultLightSource, Color borderColor = NeumorphismColors.darkDefaultBorder, double borderWidth = _defaultBorderSize, bool disableDepth = false})
-
const
Properties
- accentColor → Color
-
final
- appBarTheme → NeumorphismAppBarThemeData
-
final
- baseColor → Color
-
final
- borderColor → Color
-
final
- borderWidth → double
-
final
- boxShape → NeumorphismBoxShape
-
no setter
-
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 NeumorphismThemeData other}) → NeumorphismThemeData - 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, NeumorphismBoxShape? boxShape, TextTheme? textTheme, NeumorphismStyle? buttonStyle, IconThemeData? iconTheme, NeumorphismAppBarThemeData? appBarTheme, NeumorphismStyle? defaultStyle, bool? disableDepth, double? depth, double? intensity, Color? borderColor, double? borderSize, LightSource? lightSource}) → NeumorphismThemeData - 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