AkoResponsiveDevice enum
AkoResponsiveDevice is an Enum that can be used to identify a width.
Any width from 0 to 480 is considered to be mobile.
Any width from 481 to 1024 is considered to be tablet.
Any width from 1025 to infinity is considered to be desktop.
All numbers above are inclusive.
Constructors
- AkoResponsiveDevice(double minWidth)
-
const
Values
- mobile → const AkoResponsiveDevice
-
const AkoResponsiveDevice(0)
- tablet → const AkoResponsiveDevice
-
const AkoResponsiveDevice(481)
- desktop → const AkoResponsiveDevice
-
const AkoResponsiveDevice(1025)
Properties
Methods
-
isDesktop(
) → bool -
isMobile(
) → bool -
isTablet(
) → bool -
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
-
getForConstraint(
BoxConstraints constraints, {dynamic mobile, dynamic tablet, dynamic desktop}) → dynamic -
getForContext(
BuildContext context, {dynamic mobile, dynamic tablet, dynamic desktop}) → dynamic -
getForLayout(
AkoResponsiveDevice layout, {dynamic mobile, dynamic tablet, dynamic desktop}) → dynamic -
getLayoutFromConstraints(
BoxConstraints constraints) → dynamic -
getLayoutFromContext(
BuildContext context) → dynamic -
getLayoutFromWidth(
double width) → dynamic -
isWidthDesktop(
double width) → bool -
isWidthMobile(
double width) → bool -
isWidthTablet(
double width) → bool
Constants
-
values
→ const List<
AkoResponsiveDevice> - A constant List of the values in this enum, in order of their declaration.