getResponsiveTextStyle method

TextStyle getResponsiveTextStyle()

Returns the appropriate TextStyle based on the current screen type from the responsiveGridService.

Implementation

TextStyle getResponsiveTextStyle() {
  switch (responsiveGridService.screenType) {
    case ScreenType.mobile:
      return _mobile;
    case ScreenType.tablet:
      return _tablet ?? _desktop;
    case ScreenType.desktop:
      return _desktop;
    case null:
      return _mobile; // Default to mobile style if screen type is not set
  }
}