NiceResponsiveInfo class

Responsive information for the current context.

Constructors

NiceResponsiveInfo({required double screenWidth, required double screenHeight, required NiceBreakpoint breakpoint, required NiceFormFactor formFactor, required Orientation orientation, required double pixelRatio, required double textScaleFactor})
const
NiceResponsiveInfo.fromConstraints(BuildContext context, BoxConstraints constraints)
Create from BoxConstraints
factory

Properties

breakpoint NiceBreakpoint
final
contentMaxWidth double?
Get recommended content max width
no setter
formFactor NiceFormFactor
final
gridColumns int
Get recommended columns for grid layout
no setter
hashCode int
The hash code for this object.
no setterinherited
isDesktop bool
Is desktop form factor
no setter
isLandscape bool
Is landscape orientation
no setter
isLarge bool
Is large screen (lg, xl, xxl)
no setter
isMedium bool
Is medium screen (md)
no setter
isPhone bool
Is phone form factor
no setter
isPortrait bool
Is portrait orientation
no setter
isSmall bool
Is small screen (xs or sm)
no setter
isTablet bool
Is tablet form factor
no setter
orientation Orientation
final
pixelRatio double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenHeight double
final
screenWidth double
final
sidebarWidth double?
Get recommended sidebar width
no setter
textScaleFactor double
final

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