DefaultButton constructor
const
DefaultButton({})
Creates a default button widget.
Parameters:
btnText: Text displayed on the button.width: Button width. Defaults to full screen width.onButtonPressed: Callback function executed when button is pressed.backgroundColor: Button background color (defaults to black).textColor: Button text color (defaults to white).textFontSize: Font size for button text (defaults to 16.0).leftPadding: Left margin. Defaults toUtils.appConstants.commonPadding.rightPadding: Right margin. Defaults toUtils.appConstants.commonPadding.
Implementation
const DefaultButton(
{super.key,
this.btnText,
this.width,
this.onButtonPressed,
this.backgroundColor = Colors.black,
this.textColor = Colors.white,
this.textFontSize = 16.0,
this.leftPadding,
this.rightPadding});