LeanButton.backgroundPrimary constructor

LeanButton.backgroundPrimary({
  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.backgroundPrimary. The constructor requires a onPressed methode and a child Widget.

Implementation

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