GrockContainer constructor
const
GrockContainer({
- Key? key,
- GestureTapCallback? onTap,
- GestureLongPressCallback? onLongPress,
- Widget? child,
- Color? color,
- double? width,
- double? height,
- AlignmentGeometry? alignment,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Decoration? decoration,
- Decoration? foregroundDecoration,
- BoxConstraints? constraints,
- bool isTapAnimation = true,
- double pressedOpacity = 0.4,
- bool isKeyboardDismiss = true,
- Duration animatedDuration = const Duration(milliseconds: 200),
- int pressedOpacityDuration = 10,
- AlignmentGeometry animatedAlignment = Alignment.center,
Implementation
const GrockContainer({
Key? key,
this.onTap,
this.onLongPress,
this.child,
this.color,
this.width,
this.height,
this.alignment,
this.padding,
this.margin,
this.decoration,
this.foregroundDecoration,
this.constraints,
this.isTapAnimation = true,
this.pressedOpacity = 0.4,
this.isKeyboardDismiss = true,
this.animatedDuration = const Duration(milliseconds: 200),
this.pressedOpacityDuration = 10,
this.animatedAlignment = Alignment.center,
}) : super(key: key);