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