MobileExtensionOnContext extension

Determining whether a BuildContext is mobile or not.

on

Properties

isMobile bool

Available on BuildContext, provided by the MobileExtensionOnContext extension

Returns true if PlatformUtilsImpl.isMobile and MediaQuery's shortest side is less than 600p, or otherwise always returns false.
no setter
isNarrow bool

Available on BuildContext, provided by the MobileExtensionOnContext extension

Returns true if MediaQuery's width is less than 600p on desktop and MediaQuery's shortest side is less than 600p on mobile.
no setter