LeanTextButton.primary constructor
LeanTextButton.primary({
- double? fontSize,
- Key? key,
- required VoidCallback onPressed,
- required String buttonText,
- ButtonStyle? overrideButtonStyle,
Use this constructor if you want to initialize LeanTextButton with AppThemeAccess.theme.backgroundPrimary
and LeanButton.color with AppThemeAccess.theme.onPrimary.
The constructor requires a onPressed methode and a LeanText.
Implementation
LeanTextButton.primary(
{this.fontSize,
super.key,
required super.onPressed,
required this.buttonText,
super.overrideButtonStyle})
: textColor=null,super(
backgroundColor: AppThemeAccess.theme.primary,
child: LeanText(
buttonText,
fontSize:
fontSize ?? AppThemeAccess.theme.defaultFontSize,
color: AppThemeAccess.theme.onPrimary,
));