StyledContainer constructor
const
StyledContainer({ - Key? key,
- required Widget child,
- ModernStyleOptions? styleOptions,
- BoxDecoration? decoration,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- double? width,
- double? height,
- BoxConstraints? constraints,
- BorderRadius? borderRadius,
- bool enableGlow = false,
- double glowIntensity = 0.3,
- Color? glowColor,
- bool enableNeumorphism = false,
- int neumorphicDepth = 1,
- bool enableGlassmorphism = false,
- double blurAmount = 10.0,
- bool enablePulseBorder = false,
- Color? pulseBorderColor,
- Color? backgroundColor,
- Gradient? gradient,
- List<BoxShadow>? shadows,
- Duration animationDuration = const Duration(milliseconds: 200),
- Curve animationCurve = Curves.easeOutCubic,
- bool animationsEnabled = true,
- VoidCallback? onTap,
- VoidCallback? onLongPress,
- bool isPressed = false,
- bool isHovered = false,
- bool isDarkMode = true,
- double pressedScale = 0.97,
- double hoveredScale = 1.02,
- AlignmentGeometry? alignment,
- Clip clipBehavior = Clip.antiAlias,
})
Implementation
const StyledContainer({
super.key,
required this.child,
this.styleOptions,
this.decoration,
this.padding,
this.margin,
this.width,
this.height,
this.constraints,
this.borderRadius,
this.enableGlow = false,
this.glowIntensity = 0.3,
this.glowColor,
this.enableNeumorphism = false,
this.neumorphicDepth = 1,
this.enableGlassmorphism = false,
this.blurAmount = 10.0,
this.enablePulseBorder = false,
this.pulseBorderColor,
this.backgroundColor,
this.gradient,
this.shadows,
this.animationDuration = const Duration(milliseconds: 200),
this.animationCurve = Curves.easeOutCubic,
this.animationsEnabled = true,
this.onTap,
this.onLongPress,
this.isPressed = false,
this.isHovered = false,
this.isDarkMode = true,
this.pressedScale = 0.97,
this.hoveredScale = 1.02,
this.alignment,
this.clipBehavior = Clip.antiAlias,
});