LayoutService class
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 Methods
-
bindWidget(
BuildContext context, {Widget mobileWidget()?, Widget tabletWidget()?, Widget descktopWidget()?}) → Widget - bind the widget depond on screen size
-
getHeight(
BuildContext context) → double - return device screen height
-
getWidth(
BuildContext context) → double - return device screen width
-
isDesktop(
BuildContext context) → bool - check if the device is desctop
-
isMobile(
BuildContext context) → bool - check if the device is mobile
-
isTablet(
BuildContext context) → bool - check if the device is tabled