MiniCardOptions constructor

const MiniCardOptions({
  1. required String initials,
  2. double fontSize = 14,
  3. BoxDecoration customStyle = const BoxDecoration(),
  4. String? imageSource,
  5. bool roundedImage = true,
  6. BoxDecoration? imageStyle,
  7. MiniCardType? customBuilder,
  8. EdgeInsetsGeometry? padding,
  9. EdgeInsetsGeometry? margin,
  10. AlignmentGeometry? alignment,
  11. BoxDecoration? initialsDecoration,
  12. EdgeInsetsGeometry? initialsPadding,
  13. TextStyle? initialsTextStyle,
  14. BoxDecoration? imageContainerDecoration,
  15. EdgeInsetsGeometry? imageContainerPadding,
  16. EdgeInsetsGeometry? imageContainerMargin,
  17. BoxFit imageFit = BoxFit.cover,
  18. AlignmentGeometry imageAlignment = Alignment.center,
  19. MiniCardContainerBuilder? containerBuilder,
  20. MiniCardImageBuilder? imageBuilder,
  21. MiniCardInitialsBuilder? initialsBuilder,
  22. double size = 40.0,
  23. bool enableGlassmorphism = false,
  24. bool showGradientBackground = false,
  25. Gradient? gradient,
  26. bool isDarkMode = false,
  27. bool showBorder = false,
  28. Color? borderColor,
  29. double borderWidth = 1.0,
  30. bool showShadow = false,
  31. List<BoxShadow>? customShadow,
  32. Color? initialsBackgroundColor,
  33. bool enableGlow = false,
  34. Color? glowColor,
  35. double glowIntensity = 0.5,
  36. bool enablePremiumBorder = false,
})

Implementation

const MiniCardOptions({
  required this.initials,
  this.fontSize = 14,
  this.customStyle = const BoxDecoration(),
  this.imageSource,
  this.roundedImage = true,
  this.imageStyle,
  this.customBuilder,
  this.padding,
  this.margin,
  this.alignment,
  this.initialsDecoration,
  this.initialsPadding,
  this.initialsTextStyle,
  this.imageContainerDecoration,
  this.imageContainerPadding,
  this.imageContainerMargin,
  this.imageFit = BoxFit.cover,
  this.imageAlignment = Alignment.center,
  this.containerBuilder,
  this.imageBuilder,
  this.initialsBuilder,
  this.size = 40.0,
  this.enableGlassmorphism = false,
  this.showGradientBackground = false,
  this.gradient,
  this.isDarkMode = false,
  this.showBorder = false,
  this.borderColor,
  this.borderWidth = 1.0,
  this.showShadow = false,
  this.customShadow,
  this.initialsBackgroundColor,
  this.enableGlow = false,
  this.glowColor,
  this.glowIntensity = 0.5,
  this.enablePremiumBorder = false,
});