TextButtonWidget constructor
const
TextButtonWidget({})
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);