fallback static method

ZeroButtonGroupStyleSet fallback({
  1. AccentColor? primaryColor,
  2. Color? textColor,
  3. Color? textActiveBackgroundColor,
})

Implementation

static ZeroButtonGroupStyleSet fallback({
  AccentColor? primaryColor,
  Color? textColor,
  Color? textActiveBackgroundColor,
}) {
  final textStyle = TextStyle(
    fontSize: 14,
    fontWeight: FontWeight.w500,
    color: textColor ?? ZeroColors.neutral[10],
  );
  return ZeroButtonGroupStyleSet(
    filled: ZeroButtonGroupFilledStyle.fallback(primaryColor: primaryColor),
    outlined: ZeroButtonGroupOutlinedStyle.fallback(
      primaryColor: primaryColor,
      textStyle: textStyle,
    ),
    text: ZeroButtonGroupTextStyle.fallback(
      textStyle: textStyle,
      activeBackgroundColor: textActiveBackgroundColor,
    ),
    underline: ZeroButtonGroupUnderlineStyle.fallback(
      primaryColor: primaryColor,
      textStyle: textStyle,
    ),
  );
}