adaptive library

Classes

ScreenInformation

Functions

displayTypeOf(BuildContext context) DisplayType
Returns the DisplayType for the current screen. This app only supports mobile and desktop layouts, and as such we only have one breakpoint.
getDeviceType(MediaQueryData media) DisplayType
isDisplayDesktop(BuildContext context) → bool
Returns a boolean if we are in a display of DisplayType.desktop. Used to build adaptive and responsive layouts.
isDisplayDesktopOrTablet(BuildContext context) → bool
Returns a boolean if we are in a display of DisplayType.desktop or DisplayType.tablet. Used to build adaptive and responsive layouts.
isDisplaySmallDesktop(BuildContext context) → bool
Returns a boolean if we are in a display of DisplayType.desktop but less than _desktopLandscapeBreakpoint width. Used to build adaptive and responsive layouts.

Enums

DisplayType