NeumorphicThemeData constructor

const NeumorphicThemeData({
  1. Color baseColor = _defaultBaseColor,
  2. double depth = _defaultDepth,
  3. NeumorphicBoxShape? boxShape,
  4. double intensity = _defaultIntensity,
  5. Color accentColor = _defaultAccent,
  6. Color variantColor = _defaultVariant,
  7. Color disabledColor = _defaultDisabledColor,
  8. Color shadowLightColor = NeumorphicColors.decorationMaxWhiteColor,
  9. Color shadowDarkColor = NeumorphicColors.decorationMaxDarkColor,
  10. Color shadowLightColorEmboss = NeumorphicColors.embossMaxWhiteColor,
  11. Color shadowDarkColorEmboss = NeumorphicColors.embossMaxDarkColor,
  12. Color defaultTextColor = _defaultTextColor,
  13. LightSource lightSource = _defaultLightSource,
  14. TextTheme textTheme = const TextTheme(),
  15. IconThemeData iconTheme = const IconThemeData(),
  16. NeumorphicStyle? buttonStyle,
  17. NeumorphicAppBarThemeData appBarTheme = const NeumorphicAppBarThemeData(),
  18. Color borderColor = NeumorphicColors.defaultBorder,
  19. double borderWidth = _defaultBorderSize,
  20. 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;