TextButtonWidget constructor

const TextButtonWidget({
  1. Key? key,
  2. required String text,
  3. required Function onPressed,
  4. Function? onHover,
  5. Function? onHoverExit,
  6. Function? onTap,
  7. TextStyle? textStyle,
  8. Color? backgroundColor,
  9. Color? foregroundColor,
  10. double? horizontalPadding,
  11. double? verticalPadding,
  12. double? borderRadius,
  13. String? url,
})

Constructs a TextButtonWidget widget.

The text parameter is required and represents the text to be displayed on the button. The onPressed parameter is required and is the function to be executed when the button is pressed. The other parameters are optional and allow customization of the button's appearance and behavior.

Implementation

const TextButtonWidget({
  Key? key,
  required this.text,
  required this.onPressed,
  this.onHover,
  this.onHoverExit,
  this.onTap,
  this.textStyle,
  this.backgroundColor,
  this.foregroundColor,
  this.horizontalPadding,
  this.verticalPadding,
  this.borderRadius,
  this.url,
}) : super(key: key);