ResponsiveFontHelper class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
getDesignTextFontSize({required BuildContext context, required double originalFontSize, bool isMainTitle = false, bool isSubtitle = false, bool isBodyText = false})
→ double
-
Get optimal font size for design text elements
-
getDeviceFontMultiplier(BuildContext context)
→ double
-
Get device-specific font size adjustments
-
getDeviceInfo(BuildContext context)
→ Map<String, dynamic>
-
Debug method to get device information
-
getResponsiveFontSize({required BuildContext context, double? baseSize, double? minSize, double? maxSize, bool isTitle = false, bool isSubtitle = false, bool isBody = false, bool isCaption = false})
→ double
-
Calculate responsive font size based on screen size and device characteristics
-
getResponsiveTextStyle({required BuildContext context, double? baseSize, double? minSize, double? maxSize, bool isTitle = false, bool isSubtitle = false, bool isBody = false, bool isCaption = false, Color? color, FontWeight? fontWeight, List<Shadow>? shadows, TextDecoration? decoration, String? fontFamily})
→ TextStyle
-
Get responsive text style for different text types