import 'package:flutter/material.dart';
import 'package:tour_travel_agr/resource/font.dart';

TextStyle _getStyle(
    double fontSize, String fontFamily, FontWeight fontWeight, Color color) {
  return TextStyle(
    fontSize: fontSize,
    fontFamily: fontFamily,
    color: color,
    fontWeight: fontWeight,
  );
}

// regularStyle
TextStyle getLightStyle({
  double fontSize = FontSize.s14,
  String fontFamily = FontConstants.inter,
  required Color color,
}) {
  return _getStyle(
    fontSize,
    fontFamily,
    FontWeightManager.light,
    color,
  );
}

// regularStyle
TextStyle getRegularStyle({
  double fontSize = FontSize.s14,
  String fontFamily = FontConstants.inter,
  required Color color,
}) {
  return _getStyle(
    fontSize,
    fontFamily,
    FontWeightManager.regular,
    color,
  );
}

TextStyle getMediumStyle({
  double fontSize = FontSize.s14,
  String fontFamily = FontConstants.inter,
  required Color color,
}) {
  return _getStyle(
    fontSize,
    fontFamily,
    FontWeightManager.medium,
    color,
  );
}

TextStyle getSemiBoldStyle({
  double fontSize = FontSize.s14,
  String fontFamily = FontConstants.inter,
  required Color color,
}) {
  return _getStyle(
    fontSize,
    fontFamily,
    FontWeightManager.semiBold,
    color,
  );
}

TextStyle getBoldStyle({
  double fontSize = FontSize.s14,
  String fontFamily = FontConstants.inter,
  required Color color,
}) {
  return _getStyle(
    fontSize,
    fontFamily,
    FontWeightManager.bold,
    color,
  );
}
