GButton constructor

const GButton({
  1. Key? key,
  2. bool? active,
  3. bool? haptic,
  4. Color? backgroundColor,
  5. required IconData icon,
  6. Color? iconColor,
  7. Color? rippleColor,
  8. Color? hoverColor,
  9. Color? iconActiveColor,
  10. String text = '',
  11. Color? textColor,
  12. EdgeInsetsGeometry? padding,
  13. EdgeInsetsGeometry? margin,
  14. Duration? duration,
  15. bool? debug,
  16. double? gap,
  17. Curve? curve,
  18. TextStyle? textStyle,
  19. double? iconSize,
  20. Widget? leading,
  21. Function? onPressed,
  22. Gradient? backgroundGradient,
  23. BorderRadius? borderRadius,
  24. Border? border,
  25. Border? activeBorder,
  26. List<BoxShadow>? shadow,
  27. String? semanticLabel,
  28. GnavStyle? style = GnavStyle.google,
  29. 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);