NeumorphicThemeData constructor
const
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,
Implementation
const NeumorphicThemeData({
this.baseColor = _defaultBaseColor,
double depth = _defaultDepth,
NeumorphicBoxShape? boxShape,
double intensity = _defaultIntensity,
this.accentColor = _defaultAccent,
this.variantColor = _defaultVariant,
this.disabledColor = _defaultDisabledColor,
this.shadowLightColor = NeumorphicColors.decorationMaxWhiteColor,
this.shadowDarkColor = NeumorphicColors.decorationMaxDarkColor,
this.shadowLightColorEmboss = NeumorphicColors.embossMaxWhiteColor,
this.shadowDarkColorEmboss = NeumorphicColors.embossMaxDarkColor,
this.defaultTextColor = _defaultTextColor,
this.lightSource = _defaultLightSource,
this.textTheme = const TextTheme(),
this.iconTheme = const IconThemeData(),
this.buttonStyle,
this.appBarTheme = const NeumorphicAppBarThemeData(),
this.borderColor = NeumorphicColors.defaultBorder,
this.borderWidth = _defaultBorderSize,
this.disableDepth = false,
}) : this._depth = depth,
this._boxShape = boxShape,
this._intensity = intensity;