ResponseUI class Null safety
ResponseUI is the main brain of the package.
We are using it to calculate the geometric value of our widgets
in which we define for example a specific
height in pixels
and in that case we want the specified property to be constant whatever the
device screen size would be.
if you want to specific a constant
width to your container
lets say it will be 100 pixels in height and 100 pixels in width, you will
height property = 100 and the
width property = 100, So in that
case you want to maintain these
width property relative to
the device screen size you originally designed your app on.
in that case the class/package will do the work to change these relative
width to maintain the same display occupation size.
The padding offset from the bottom.
- currentContext → BuildContext?
- hashCode → int
The hash code for this object.
- inMobilePortrait → bool
inMobilePortraitis helpful if you want to know whether the device you are working on a Mobile Portrait or a Tablet Portrait mode and you can take action according to these information ot layout your UI.read-only
- isDevicePortrait → bool
isDevicePortraitis helpful if you want to know whether the device orientation is in Portrait or in Landscape, it can ably to any device (Tablet or Mobil Phone).read-only
- runtimeType → Type
A representation of the runtime type of the object.
- screenHeight → double?
screenHeightreturns the current device screen height. Note: You can use it instead of
- screenPixelRatio → double
MediaQueryfunction. The number of device pixels for each logical pixel. This number might not be a power of two. Indeed, it might not even be an integer. For example, the Nexus 6 has a device pixel ratio of 3.5.read-only
- screenWidth → double?
screenWidthreturns the current device screen width. Note: You can use it instead of
- textScaleFactor → double
The number of font pixels for each logical pixel.
- topPadding → double
The padding offset from the top.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
double fontSize) → double
setFontSizeuses its argument
fontSizeto calculate the initial text size in pixels and from that the package can deal with all the calculation.
double height) → double
setHeightuses its argument
heightto calculate the initial widget height in pixels and from that the package can deal with all the calculation.
double width) → double
setWidthuses its argument
widthto calculate the initial widget width in pixels and from that the package can deal with all the calculation.
) → String
A string representation of this object.