StyledContainer constructor

const StyledContainer({
  1. Key? key,
  2. required Widget child,
  3. ModernStyleOptions? styleOptions,
  4. BoxDecoration? decoration,
  5. EdgeInsetsGeometry? padding,
  6. EdgeInsetsGeometry? margin,
  7. double? width,
  8. double? height,
  9. BoxConstraints? constraints,
  10. BorderRadius? borderRadius,
  11. bool enableGlow = false,
  12. double glowIntensity = 0.3,
  13. Color? glowColor,
  14. bool enableNeumorphism = false,
  15. int neumorphicDepth = 1,
  16. bool enableGlassmorphism = false,
  17. double blurAmount = 10.0,
  18. bool enablePulseBorder = false,
  19. Color? pulseBorderColor,
  20. Color? backgroundColor,
  21. Gradient? gradient,
  22. List<BoxShadow>? shadows,
  23. Duration animationDuration = const Duration(milliseconds: 200),
  24. Curve animationCurve = Curves.easeOutCubic,
  25. bool animationsEnabled = true,
  26. VoidCallback? onTap,
  27. VoidCallback? onLongPress,
  28. bool isPressed = false,
  29. bool isHovered = false,
  30. bool isDarkMode = true,
  31. double pressedScale = 0.97,
  32. double hoveredScale = 1.02,
  33. AlignmentGeometry? alignment,
  34. 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,
});