LeanTextButton.secondary constructor

LeanTextButton.secondary({
  1. double? fontSize,
  2. Key? key,
  3. required VoidCallback onPressed,
  4. required String buttonText,
  5. 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));