ReadyTextButton constructor

const ReadyTextButton({
  1. Key? key,
  2. required String text,
  3. VoidCallback? onPress,
  4. Color? textColor,
  5. Color? backgroundColor,
  6. Color? iconColor,
  7. Color? borderColor,
  8. IconData? icon,
  9. double? width,
  10. double? height,
  11. double borderRadius = 8,
  12. double? iconSpacing,
  13. double? borderWidth,
  14. bool showUnderline = false,
  15. IconPosition iconPosition = IconPosition.trailing,
  16. Alignment alignment = Alignment.center,
  17. ReadyButtonSize size = ReadyButtonSize.medium,
  18. bool expanded = false,
})

Implementation

const ReadyTextButton({
  super.key,
  required this.text,
  this.onPress,
  this.textColor,
  this.backgroundColor,
  this.iconColor,
  this.borderColor,
  this.icon,
  this.width,
  this.height,
  this.borderRadius = 8,
  this.iconSpacing,
  this.borderWidth,
  this.showUnderline = false,
  this.iconPosition = IconPosition.trailing,
  this.alignment = Alignment.center,
  this.size = ReadyButtonSize.medium,
  this.expanded = false,
}) : _styleType = _ButtonStyleType.transparent;