Responsive class
Constructors
-
Responsive(BuildContext context, {dynamic responsiveForChangeableOrientation = ResponsiveForChangeableOrientation.fromRealDimension, bool removePadding = true})
-
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
screenType
→ ScreenType
-
return the type of screen depending on the dimension
no setter
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
responsiveFunction({required Function forUnInitialDevices, Function? forPortraitMobileScreen, Function? forLandscapeMobileScreen, Function? forPortraitTabletScreen, Function? forLandscapeTabletScreen, Function? forDesktopScreen, Function? forTVScreen})
→ dynamic
-
Use to return different function depending on screen type.
-
responsiveHeight({required double forUnInitialDevices, double? forPortraitMobileScreen, double? forLandscapeMobileScreen, double? forPortraitTabletScreen, double? forLandscapeTabletScreen, double? forDesktopScreen, double? forTVScreen})
→ double
-
return a responsive value calculated in percentage
-
responsiveValue({required double forUnInitialDevices, double? forPortraitMobileScreen, double? forLandscapeMobileScreen, double? forPortraitTabletScreen, double? forLandscapeTabletScreen, double? forDesktopScreen, double? forTVScreen})
→ double
-
-
responsiveWidget({required Widget forUnInitialDevices, Widget? forPortraitMobileScreen, Widget? forLandscapeMobileScreen, Widget? forPortraitTabletScreen, Widget? forLandscapeTabletScreen, Widget? forDesktopScreen, Widget? forTVScreen})
→ Widget
-
return a responsive widget depending on screen type
-
responsiveWidth({required double forUnInitialDevices, double? forPortraitMobileScreen, double? forLandscapeMobileScreen, double? forPortraitTabletScreen, double? forLandscapeTabletScreen, double? forDesktopScreen, double? forTVScreen})
→ double
-
return a responsive value calculated in percentage
-
toString()
→ String
-
A string representation of this object.
inherited