altLabelTxtStyle function

TextStyle altLabelTxtStyle({
  1. required dynamic component,
  2. required bool isValue,
})

Implementation

TextStyle altLabelTxtStyle({required var component, required bool isValue}) {
  return TextStyle(
    color: Palette.altLabelTextColor,
    fontSize: SwitchCase().labelComponentFontSizeSC(
        component["fontSize"].toString(),
        {
          "Small": 12,
          "Medium": 14,
          "Large": 16,
        },
        12),
    fontWeight: ((component["fontSize"] != null)
        ? ((component["fontSize"] == "Large")
            ? FontWeight.bold
            : (isValue ? FontWeight.normal : FontWeight.bold))
        : (isValue ? FontWeight.normal : FontWeight.bold)),
  );
}