ResponsiveInformation class
SBValue class to stores the values of ScreenBreakpoints.
SBValue save a value that means limit for a screen breakpoint is similar to Size.width
.
We can use differents type
of values min
, max
,
The types serves to do comparations between all the differents ScreenBreakpoints
Sugestion: in order to have a consistance in the behaviour of the app
the best is to set the SBValue for a ScreenBreakpoints in all cases by min
or max
,
avoiding mixing the types.
min: refers to the lower limit for the width of screen.
max: refers to the upper limit for the width of screen.
Example
mobile: SBValue.max(500) it means the maximum width
to mobile type is 500.
desktop: SBValue.min(1200) it means the minimun width
to desktop type is 1200.
Could be use SBValue.zero
for indicate the minimum value in 0.
Could be use SBValue.inf
for indicate the maximum value in double.infinity.
Constructors
- ResponsiveInformation({required DeviceScreen deviceScreen, required Size screenSize, required Size localSize, required ScreenBreakpoints currentBreakpoints, required Orientation orientation})
Properties
- currentBreakpoints → ScreenBreakpoints
-
They are the actual control points after filter between all the
Breakpoints
LocalBreakpoints
,GlobalBreakpoints
orDefaultBreakpoints
final - deviceScreen → DeviceScreen
-
This value tells the condition to look for the
breakpoint
value in the WrapperConfig for the sreen typemobile
,tablet
,desktop
final - hashCode → int
-
The hash code for this object.
no setterinherited
- isDesktop → bool
-
no setter
- isLandscape → bool
-
Return true if the de device is mode Landscape
final
- isMobile → bool
-
no setter
- isPortrait → bool
-
Return true if the de device is mode Portrait
final
- isTablet → bool
-
no setter
- localSize → Size
-
Size
of the currentWidget
This value it is obtained by the constraintsfinal - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenSize → Size
-
Size
of the currentscreen
This is similar toMediaQuery.of(context).size
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited