ResponsiveUtils class

Responsive utilities for the countdown timer package

Constructors

ResponsiveUtils()

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

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

clearCache() → void
Clear cached values (useful for testing or when screen changes)
getDeviceType(BuildContext context) DeviceType
Get the current device type
getResponsiveBorderRadius(BuildContext context, {double? xs, double? sm, double? md, double? lg, double? xl, double? base}) double
Get responsive border radius based on screen size
getResponsiveCircularSize(BuildContext context, {double? xs, double? sm, double? md, double? lg, double? xl, double? base}) double
Get responsive circular progress size based on screen size
getResponsiveFontSize(BuildContext context, {double? xs, double? sm, double? md, double? lg, double? xl, double? base}) double
Get responsive font size based on screen size
getResponsiveIconSize(BuildContext context, {double? xs, double? sm, double? md, double? lg, double? xl, double? base}) double
Get responsive icon size based on screen size
getResponsivePadding(BuildContext context, {EdgeInsets? xs, EdgeInsets? sm, EdgeInsets? md, EdgeInsets? lg, EdgeInsets? xl, EdgeInsets? base}) EdgeInsets
Get responsive padding based on screen size
getResponsiveStrokeWidth(BuildContext context, {double? xs, double? sm, double? md, double? lg, double? xl, double? base}) double
Get responsive stroke width for circular progress
getScreenDimensions(BuildContext context) Size
Get the screen size
getScreenHeight(BuildContext context) double
Get the screen height
getScreenSize(BuildContext context) ScreenSize
Get the current screen size category
getScreenWidth(BuildContext context) double
Get the screen width
isLandscape(BuildContext context) bool
Check if the device is in landscape orientation
isPortrait(BuildContext context) bool
Check if the device is in portrait orientation