GButton constructor
const
GButton({
- Key? key,
- bool? active,
- bool? haptic,
- Color? backgroundColor,
- required IconData icon,
- Color? iconColor,
- Color? rippleColor,
- Color? hoverColor,
- Color? iconActiveColor,
- String text = '',
- Color? textColor,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Duration? duration,
- bool? debug,
- double? gap,
- Curve? curve,
- TextStyle? textStyle,
- double? iconSize,
- Widget? leading,
- Function? onPressed,
- Gradient? backgroundGradient,
- BorderRadius? borderRadius,
- Border? border,
- Border? activeBorder,
- List<
BoxShadow> ? shadow, - String? semanticLabel,
- GnavStyle? style = GnavStyle.google,
- double? textSize,
Implementation
const GButton({
Key? key,
this.active,
this.haptic,
this.backgroundColor,
required this.icon,
this.iconColor,
this.rippleColor,
this.hoverColor,
this.iconActiveColor,
this.text = '',
this.textColor,
this.padding,
this.margin,
this.duration,
this.debug,
this.gap,
this.curve,
this.textStyle,
this.iconSize,
this.leading,
this.onPressed,
this.backgroundGradient,
this.borderRadius,
this.border,
this.activeBorder,
this.shadow,
this.semanticLabel,
this.style = GnavStyle.google,
this.textSize,
}) : super(key: key);