GrockButton constructor
const
GrockButton({
- Key? key,
- Widget? child,
- double tapOpacity = 0.8,
- void onTap()?,
- void onDoubleTap()?,
- void onLongPress()?,
- BorderRadius? borderRadius,
- BorderSide? borderSide,
- Gradient? gradient,
- Color? color,
- double elevation = 8.0,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 12),
- Color elevationColor = Colors.black26,
- double? height = 44,
- 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);