LeanButton.backgroundSecondary constructor

LeanButton.backgroundSecondary({
  1. Key? key,
  2. required VoidCallback onPressed,
  3. required Widget child,
  4. ButtonStyle? overrideButtonStyle,
})

Use this constructor if you want to initialize LeanButton with AppThemeAccess.theme.backgroundSecondary. The constructor requires a onPressed methode and a child Widget.

Implementation

LeanButton.backgroundSecondary(
    {super.key,
    required this.onPressed,
    required this.child,
    this.overrideButtonStyle})
    : backgroundColor = AppThemeAccess.theme.backgroundSecondary;