SmartContainer constructor
const
SmartContainer({
- Key? key,
- bool? visible = true,
- BoxConstraints? constraints,
- bool userClip = false,
- AlignmentGeometry? alignment,
- GestureTapCallback? onTap,
- GestureLongPressCallback? onLongPress,
- bool isCircle = false,
- double borderWidth = 0,
- Color? backgroundColor,
- Widget? child,
- EdgeInsetsGeometry? padding = EdgeInsets.zero,
- Color borderColor = Colors.transparent,
- EdgeInsetsGeometry? margin,
- BorderRadius? borderRadius,
- double? height,
- double? width,
- HitTestBehavior behavior = HitTestBehavior.opaque,
- List<
BoxShadow> ? boxShadow, - Widget replacement = const SizedBox.shrink(),
- bool hasSizeWhenUnVisible = false,
- double? radius,
- double? verRadius,
- double? topRadius,
- double? topRightRadius,
- double? topLeftRadius,
- double? bottomLeftRadius,
- double? bottomRightRadius,
- double? bottomRadius,
- double? horRadius,
- double? leftRadius,
- double? rightRadius,
- DecorationImage? image,
- bool useSafeArea = false,
- Gradient? gradient,
- bool isSquare = false,
- BoxBorder? border,
- Duration? debounceTapDuration,
Implementation
const SmartContainer(
{Key? key,
this.visible = true,
this.constraints,
this.userClip = false,
this.alignment,
this.onTap,
this.onLongPress,
this.isCircle = false,
this.borderWidth = 0,
this.backgroundColor,
this.child,
this.padding = EdgeInsets.zero,
this.borderColor = Colors.transparent,
this.margin,
this.borderRadius,
this.height,
this.width,
this.behavior = HitTestBehavior.opaque,
this.boxShadow,
this.replacement = const SizedBox.shrink(),
this.hasSizeWhenUnVisible = false,
this.radius,
this.verRadius,
this.topRadius,
this.topRightRadius,
this.topLeftRadius,
this.bottomLeftRadius,
this.bottomRightRadius,
this.bottomRadius,
this.horRadius,
this.leftRadius,
this.rightRadius,
this.image,
this.useSafeArea = false,
this.gradient,
this.isSquare = false,
this.border,
this.debounceTapDuration})
: super(key: key);