NeumorphismThemeData constructor

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