HubbleRadioButtonVariants.light constructor

HubbleRadioButtonVariants.light({
  1. required HubbleTypography typography,
  2. required HubbleSpaces spaces,
  3. required HubbleColorPalette colors,
})

Implementation

factory HubbleRadioButtonVariants.light({
  required HubbleTypography typography,
  required HubbleSpaces spaces,
  required HubbleColorPalette colors,
}) {
  return HubbleRadioButtonVariants(
    selected: HubbleRadioStyle(
      radioSize: 20 * spaces.scale,
      radioBorderWidth: 7 * spaces.scale,
      boxBackground: colors.base.primary.dark,
      radioBackground: colors.base.primary.dark,
      radioColor: colors.base.tertiary.light,
      titleStyle: typography.s15.copyWith(
        color: colors.base.tertiary.light,
        fontWeight: FontWeight.w600,
      ),
      subtitleStyle: typography.s13.copyWith(
        color: colors.base.tertiary.normal,
        fontWeight: FontWeight.w400,
      ),
    ),
    unselected: HubbleRadioStyle(
      radioSize: 20 * spaces.scale,
      radioBorderWidth: 1 * spaces.scale,
      boxBackground: colors.base.tertiary.normal,
      radioBackground: colors.base.tertiary.normal,
      radioColor: colors.base.primary.dark,
      titleStyle: typography.s15.copyWith(
        color: colors.base.primary.light,
        fontWeight: FontWeight.w600,
      ),
      subtitleStyle: typography.s13.copyWith(
        color: colors.base.primary.light,
        fontWeight: FontWeight.w400,
      ),
    ),
  );
}