secondaryStyle static method
ZeroButtonStyle
secondaryStyle({
- ZeroSizeType? buttonSizeType,
- ZeroButtonRadiusType? buttonRadiusType,
- Color? foregroundColor,
- Color? backgroundColor,
- Color? disabledForegroundColor,
- Color? disabledBackgroundColor,
- Color? shadowColor,
- Color? surfaceTintColor,
- double? elevation,
- TextStyle? textStyle,
- EdgeInsetsGeometry? padding,
- Size? minimumSize,
- Size? fixedSize,
- Size? maximumSize,
- BorderSide? side,
- OutlinedBorder? shape,
- VisualDensity? visualDensity,
- MaterialTapTargetSize? tapTargetSize,
- Duration? animationDuration,
- bool? enableFeedback,
- AlignmentGeometry? alignment,
- InteractiveInkFeatureFactory? splashFactory,
- Color? animatingColor,
secondaryStyle is the function that will be used to create ZeroButtonStyle with secondary color
Implementation
static ZeroButtonStyle secondaryStyle({
ZeroSizeType? buttonSizeType,
ZeroButtonRadiusType? buttonRadiusType,
Color? foregroundColor,
Color? backgroundColor,
Color? disabledForegroundColor,
Color? disabledBackgroundColor,
Color? shadowColor,
Color? surfaceTintColor,
double? elevation,
TextStyle? textStyle,
EdgeInsetsGeometry? padding,
Size? minimumSize,
Size? fixedSize,
Size? maximumSize,
BorderSide? side,
OutlinedBorder? shape,
VisualDensity? visualDensity,
MaterialTapTargetSize? tapTargetSize,
Duration? animationDuration,
bool? enableFeedback,
AlignmentGeometry? alignment,
InteractiveInkFeatureFactory? splashFactory,
Color? animatingColor,
}) {
return ZeroButtonStyle(
backgroundColor: backgroundColor ?? ZeroColors.white,
foregroundColor: foregroundColor ?? ZeroColors.neutral[10],
disabledBackgroundColor: disabledBackgroundColor,
disabledForegroundColor: disabledForegroundColor,
shadowColor: shadowColor,
surfaceTintColor: surfaceTintColor ?? ZeroColors.primary[3],
elevation: elevation ?? 0,
textStyle: textStyle,
padding: padding ?? buttonSizeType?.padding,
shape: shape ??
RoundedRectangleBorder(
borderRadius: buttonRadiusSize(
buttonRadiusType ?? ZeroButtonRadiusType.rectangle),
side: BorderSide(color: ZeroColors.neutral[5], width: 1),
),
visualDensity: visualDensity,
tapTargetSize: tapTargetSize ?? MaterialTapTargetSize.shrinkWrap,
animationDuration: animationDuration,
enableFeedback: enableFeedback,
alignment: alignment,
splashFactory: splashFactory,
animatingColor: animatingColor ?? ZeroColors.primary[3],
side: side,
fixedSize: fixedSize,
maximumSize: maximumSize,
minimumSize: minimumSize,
);
}