ResponsiveHelper class
Responsive helper class for device detection and responsive utilities
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
-
getBottomSafeAreaHeight(
BuildContext context) → double - Get bottom safe area height
-
getDevicePixelRatio(
BuildContext context) → double - Get device pixel ratio
-
getDeviceType(
BuildContext context) → DeviceType - Get current device type based on screen width
-
getResponsiveAspectRatio(
BuildContext context, {double mobile = 1.0, double? tablet, double? desktop}) → double - Get responsive aspect ratio
-
getResponsiveColumns(
BuildContext context, {int mobile = 1, int? tablet, int? desktop}) → int - Get responsive columns for grid layouts
-
getSafeAreaPadding(
BuildContext context) → EdgeInsets - Get safe area padding
-
getScreenHeight(
BuildContext context) → double - Get screen height
-
getScreenSize(
BuildContext context) → ScreenSize - Get current screen size category
-
getScreenWidth(
BuildContext context) → double - Get screen width
-
getStatusBarHeight(
BuildContext context) → double - Get status bar height
-
getTextScaler(
BuildContext context) → TextScaler - Get text scale factor
-
isDesktop(
BuildContext context) → bool - Check if current device is desktop
-
isLandscape(
BuildContext context) → bool - Check if device is in landscape mode
-
isLargeScreen(
BuildContext context) → bool - Check if screen is large
-
isMediumScreen(
BuildContext context) → bool - Check if screen is medium
-
isMobile(
BuildContext context) → bool - Check if current device is mobile
-
isPortrait(
BuildContext context) → bool - Check if device is in portrait mode
-
isSmallScreen(
BuildContext context) → bool - Check if screen is small
-
isTablet(
BuildContext context) → bool - Check if current device is tablet
-
responsiveValue<
T> (BuildContext context, {required T mobile, T? tablet, T? desktop}) → T - Get responsive value based on device type