GrxRoundedButton constructor

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

Implementation

const GrxRoundedButton({
  required super.foregroundColor,
  super.key,
  super.text,
  super.textSpan,
  super.transform,
  super.onPressed,
  super.margin,
  super.mainAxisSize = MainAxisSize.min,
  super.backgroundColor,
  super.icon,
  super.iconAlign,
  super.iconSize,
  super.iconColor,
  super.iconPadding,
  super.isLoading,
  super.shape,
  super.borderColor,
  super.textStyle,
  super.enabled,
  super.style,
  super.padding,
});