GResponsive class

An utility that responsible for responsive view

Constructors

GResponsive()

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

mediumBreakpoint double
Set breakpoint value for medium screen
getter/setter pair
smallBreakpoint double
Set breakpoint value for small screen
getter/setter pair

Static Methods

isLarge(BuildContext context) bool
Return true if screen width bigger than mediumBreakpoint
isMedium(BuildContext context) bool
Return true if screen width bigger than smallBreakpoint and lower than or equals to mediumBreakpoint
isSmall(BuildContext context) bool
Return true if screen width lower than or equals to smallBreakpoint
on<T>(BuildContext context, {required T initial, T? small, T? medium, T? large}) → T
Return T value based on screen width