getTypography function

DigitTypography getTypography(
  1. BuildContext context
)

Implementation

DigitTypography getTypography(BuildContext context) {

  if (AppView.isDesktopView(MediaQuery.of(context).size.width)) {
    /// Desktop
    return DigitTheme.instance.desktopTypography;
  } else if (AppView.isTabletView(MediaQuery.of(context).size.width)) {
    /// Tablet
    return DigitTheme.instance.tabTypography;
  } else {
    /// else return mobile typography
    return DigitTheme.instance.mobileTypography;
  }
}