updateFonts method

void updateFonts(
  1. double inputSize
)

Updates the font size.

Implementation

void updateFonts(double inputSize) {
  Color primFntColor;
  Color secFntColor;
  double tlSize = inputSize;
  double headSize = tlSize - 5;
  double txtSize = tlSize - 20;

  if (SettingsSharedPref.getTheme() == 'dark'
      ) {
    primFntColor = Colors.white;
    secFntColor = Colors.black;
  } else {
    primFntColor = Colors.black;
    secFntColor = Colors.white;
  }
  print('inside update fonts');

  primaryFontColor = primFntColor;
  secondaryFontColor = secFntColor;
  titleSize = tlSize;
  headingSize = headSize;
  textSize = txtSize;
}