GrockContainer constructor

const GrockContainer({
  1. Key? key,
  2. GestureTapCallback? onTap,
  3. GestureLongPressCallback? onLongPress,
  4. Widget? child,
  5. Color? color,
  6. double? width,
  7. double? height,
  8. AlignmentGeometry? alignment,
  9. EdgeInsetsGeometry? padding,
  10. EdgeInsetsGeometry? margin,
  11. Decoration? decoration,
  12. Decoration? foregroundDecoration,
  13. BoxConstraints? constraints,
  14. bool isTapAnimation = true,
  15. double pressedOpacity = 0.4,
  16. bool isKeyboardDismiss = true,
  17. Duration animatedDuration = const Duration(milliseconds: 200),
  18. int pressedOpacityDuration = 10,
  19. 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);