ResponsiveSizeUtils class abstract
Class use for beautiful responsive design both on tablets and mobiles This class specially used for developing an app for all devices without having specific different designs
Constructors
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 Properties
- statusBarHeight → double
-
no setter
-
device system bar height
no setter
Static Methods
-
device(
) → DEVICE -
Return DEVICE type
0 <=
Mobile portrait
<= 480 <=Tablet portrait
<= 720 <=Web
Web
is also equal tomobile landscape
andtablet landscape
and alsodesktop
-
fullHeight(
) → double -
return
height
of screen -
fullWidth(
) → double -
return
width
of screen -
height(
double designedHeight, {double? maxHeight}) → double -
return a reasonable height
value
. -
heightFraction(
{required double fraction}) → double - Return the
-
heightSpacing(
{required double spaceSizeBeforeBreakPoint, required double spaceSizeAfterBreakPoint}) → double -
isPortrait(
) → bool - Show if device is in portrait mode
-
responsiveFont(
{required double fontSize, double? maxFontSize}) → double - This class gives you a reasonable font Size Use this class with fontSize and fontHeight property of TextStyle
-
responsiveWidgetAccordingToDevice(
{required Widget mobilePortrait, required Widget tabletPortrait, required Widget web}) → Widget - With this widget you can have three different layouts for each kind of device
-
smallestWidth(
) → double - Return smallest width of device
-
width(
double designedWidth, {double? maxWidth}) → double -
return a reasonable width
value
. -
widthFraction(
{required double fraction}) → double - For calculating how much
-
widthSpacing(
{required double spaceSizeBeforeBreakPoint, required double spaceSizeAfterBreakPoint}) → double? - With this class you can have