ContextExtensions extension
Extension on BuildContext to provide responsive layout helpers based on screen size and orientation.
- on
Properties
- display → Size
-
Available on BuildContext, provided by the ContextExtensions extension
The size of the current screen (logical pixels).no setter - isDesktop → bool
-
Available on BuildContext, provided by the ContextExtensions extension
Returnstrueif the screen width is greater than 1024 pixels.no setter - isLandscape → bool
-
Available on BuildContext, provided by the ContextExtensions extension
Returnstrueif the device is in landscape orientation.no setter - isMobile → bool
-
Available on BuildContext, provided by the ContextExtensions extension
Returnstrueif the screen width is less than 600 pixels.no setter - isPortrait → bool
-
Available on BuildContext, provided by the ContextExtensions extension
Returnstrueif the device is in portrait orientation.no setter - isTablet → bool
-
Available on BuildContext, provided by the ContextExtensions extension
Returnstrueif the screen width is between 600 and 800 pixels.no setter