getOutlinedButtonFonts function

TextStyle? getOutlinedButtonFonts(
  1. S360fButtonSize size,
  2. ThemeData theme, {
  3. bool isDisable = false,
  4. S360fWidgetColorVariant color = S360fWidgetColorVariant.primary,
})

Implementation

TextStyle? getOutlinedButtonFonts(
  S360fButtonSize size,
  ThemeData theme, {
  bool isDisable = false,
  S360fWidgetColorVariant color = S360fWidgetColorVariant.primary,
}) {
  final buttonColors = getButtonColors(theme, color, isDisable: isDisable);
  switch (size) {
    case S360fButtonSize.small:
      return theme.textTheme.labelLarge?.copyWith(
        color: isDisable ? theme.disabledColor : buttonColors.border,
      );
    case S360fButtonSize.medium:
      return theme.textTheme.labelLarge?.copyWith(
        color: isDisable ? theme.disabledColor : buttonColors.border,
      );
    case S360fButtonSize.large:
      return theme.textTheme.bodyMedium?.copyWith(
        fontWeight: FontWeight.w600,
        color: isDisable ? theme.disabledColor : buttonColors.border,
      );
  }
}