MediaQueryContextExtensions extension

on

Properties

bottomBarHeight double

Available on BuildContext, provided by the MediaQueryContextExtensions extension

Returns the height of the bottom navigation bar (if present).
no setter
brightness Brightness

Available on BuildContext, provided by the MediaQueryContextExtensions extension

Retrieves the current platform brightness setting (light or dark mode) from the operating system.
no setter
hasNotch bool

Available on BuildContext, provided by the MediaQueryContextExtensions extension

Checks if the device has a notch (top safe area padding > 20).
no setter
isDarkMode bool

Available on BuildContext, provided by the MediaQueryContextExtensions extension

Checks if the operating system is currently running in Dark Mode.
no setter
isKeyboardVisible bool

Available on BuildContext, provided by the MediaQueryContextExtensions extension

Checks whether the software keyboard is currently visible on the screen.
no setter
isLandscape bool

Available on BuildContext, provided by the MediaQueryContextExtensions extension

Checks whether the device is currently in landscape orientation.
no setter
isPortrait bool

Available on BuildContext, provided by the MediaQueryContextExtensions extension

Checks whether the device is currently in portrait orientation.
no setter
orientation Orientation

Available on BuildContext, provided by the MediaQueryContextExtensions extension

Retrieves the current orientation of the device.
no setter
safeHeight double

Available on BuildContext, provided by the MediaQueryContextExtensions extension

Returns the safe height (screen height minus top and bottom padding).
no setter
safePadding EdgeInsets

Available on BuildContext, provided by the MediaQueryContextExtensions extension

Retrieves the padding necessary to avoid system intrusions (e.g., status bars, notches).
no setter
safeWidth double

Available on BuildContext, provided by the MediaQueryContextExtensions extension

Returns the safe width (screen width minus left and right padding).
no setter
screenHeight double

Available on BuildContext, provided by the MediaQueryContextExtensions extension

Retrieves the height of the screen in logical pixels.
no setter
screenSize Size

Available on BuildContext, provided by the MediaQueryContextExtensions extension

Retrieves the total size of the screen (width and height).
no setter
screenWidth double

Available on BuildContext, provided by the MediaQueryContextExtensions extension

Retrieves the width of the screen in logical pixels.
no setter
statusBarHeight double

Available on BuildContext, provided by the MediaQueryContextExtensions extension

Returns the height of the status bar.
no setter