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