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