GrxTertiaryButton constructor

GrxTertiaryButton({
  1. Key? key,
  2. required String? text,
  3. GrxTextTransform transform = GrxTextTransform.none,
  4. void onPressed()?,
  5. EdgeInsets? margin,
  6. IconData? icon,
  7. GrxAlign iconAlign = GrxAlign.left,
  8. double iconSize = 20.0,
  9. Color? iconColor,
  10. double iconPadding = GrxSpacing.xs,
  11. GrxShape shape = GrxShape.rounded,
  12. bool isLoading = false,
  13. TextStyle? textStyle,
  14. MainAxisSize mainAxisSize = MainAxisSize.min,
  15. bool enabled = true,
  16. EdgeInsets padding = const EdgeInsets.symmetric(vertical: 12.0, horizontal: 20.0),
  17. Color? foregroundColor,
})

Implementation

GrxTertiaryButton({
  super.key,
  required super.text,
  super.transform,
  super.onPressed,
  super.margin,
  super.icon,
  super.iconAlign,
  super.iconSize,
  super.iconColor,
  super.iconPadding,
  super.shape,
  super.isLoading,
  super.textStyle,
  super.mainAxisSize,
  super.enabled,
  super.padding,
  final Color? foregroundColor,
}) : super(foregroundColor: foregroundColor ?? GrxColors.primary.shade800);