MiniCardOptions constructor
const
MiniCardOptions({
- required String initials,
- double fontSize = 14,
- BoxDecoration customStyle = const BoxDecoration(),
- String? imageSource,
- bool roundedImage = true,
- BoxDecoration? imageStyle,
- MiniCardType? customBuilder,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- AlignmentGeometry? alignment,
- BoxDecoration? initialsDecoration,
- EdgeInsetsGeometry? initialsPadding,
- TextStyle? initialsTextStyle,
- BoxDecoration? imageContainerDecoration,
- EdgeInsetsGeometry? imageContainerPadding,
- EdgeInsetsGeometry? imageContainerMargin,
- BoxFit imageFit = BoxFit.cover,
- AlignmentGeometry imageAlignment = Alignment.center,
- MiniCardContainerBuilder? containerBuilder,
- MiniCardImageBuilder? imageBuilder,
- MiniCardInitialsBuilder? initialsBuilder,
- double size = 40.0,
- bool enableGlassmorphism = false,
- bool showGradientBackground = false,
- Gradient? gradient,
- bool isDarkMode = false,
- bool showBorder = false,
- Color? borderColor,
- double borderWidth = 1.0,
- bool showShadow = false,
- List<
BoxShadow> ? customShadow, - Color? initialsBackgroundColor,
- bool enableGlow = false,
- Color? glowColor,
- double glowIntensity = 0.5,
- 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,
});