GrockButton constructor

const GrockButton({
  1. Key? key,
  2. Widget? child,
  3. double tapOpacity = 0.8,
  4. void onTap()?,
  5. void onDoubleTap()?,
  6. void onLongPress()?,
  7. BorderRadius? borderRadius,
  8. BorderSide? borderSide,
  9. Gradient? gradient,
  10. Color? color,
  11. double elevation = 8.0,
  12. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 12),
  13. Color elevationColor = Colors.black26,
  14. double? height = 44,
  15. double? width,
})

Implementation

const GrockButton({
  Key? key,
  this.child,
  this.tapOpacity = 0.8,
  this.onTap,
  this.onDoubleTap,
  this.onLongPress,
  this.borderRadius,
  this.borderSide,
  this.gradient,
  this.color,
  this.elevation = 8.0,
  this.padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 12),
  this.elevationColor = Colors.black26,
  this.height = 44,
  this.width,
})  : assert(tapOpacity > 0 || tapOpacity < 1),
      super(key: key);