LeanButton.backgroundPrimary constructor
LeanButton.backgroundPrimary({
- Key? key,
- required VoidCallback onPressed,
- required Widget child,
- 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;