LeanTextButton constructor

LeanTextButton({
  1. Color? textColor,
  2. double? fontSize,
  3. Key? key,
  4. required VoidCallback onPressed,
  5. required String buttonText,
  6. ButtonStyle? overrideButtonStyle,
  7. Color? backgroundColor,
})

The constructor requires a onPressed methode and a string for LeanText.

Implementation

LeanTextButton({this.textColor, this.fontSize,
    super.key,
    required super.onPressed,
    required this.buttonText,
    super.overrideButtonStyle,
    super.backgroundColor})
    : super(
          child: LeanText(
        buttonText,
        fontSize: fontSize ?? AppThemeAccess.theme.defaultFontSize,
        color: textColor ?? AppThemeAccess.theme.onPrimary,
      ));