BuildContextExt extension

on

Properties

androidInfo → Future<AndroidDeviceInfo>

Available on BuildContext, provided by the BuildContextExt extension

Get the android device info
no setter
appInfo → Future<ExAppModel>

Available on BuildContext, provided by the BuildContextExt extension

Get the app info
no setter
arguments → Object?

Available on BuildContext, provided by the BuildContextExt extension

Get the arguments passed to the current route.
no setter
bottomPadding → double

Available on BuildContext, provided by the BuildContextExt extension

Get the bottom padding of the MediaQuery
no setter
brightness → Brightness

Available on BuildContext, provided by the BuildContextExt extension

Returns current brightness independent of the theme.
no setter
canPop → bool

Available on BuildContext, provided by the BuildContextExt extension

Returns true if the navigator can pop.
no setter
colorScheme → ColorScheme

Available on BuildContext, provided by the BuildContextExt extension

Get the current ColorScheme
no setter
deviceInfo → Future<BaseDeviceInfo>

Available on BuildContext, provided by the BuildContextExt extension

Get the device info
no setter
devicePixelRatio → double

Available on BuildContext, provided by the BuildContextExt extension

Get the device pixel ratio
no setter
iosInfo → Future<IosDeviceInfo>

Available on BuildContext, provided by the BuildContextExt extension

Get the ios device info
no setter
isAnimationsDisabled → bool

Available on BuildContext, provided by the BuildContextExt extension

Returns true if system's animations are disabled by the user.
no setter
isDarkMode → bool

Available on BuildContext, provided by the BuildContextExt extension

Get the device dark mode
no setter
isHighContrast → bool

Available on BuildContext, provided by the BuildContextExt extension

Returns true if device accessibility high contrast is enabled.
no setter
isKeyboardVisible → bool

Available on BuildContext, provided by the BuildContextExt extension

Get if keyboard is visible
no setter
isLandscape → bool

Available on BuildContext, provided by the BuildContextExt extension

Check if the device orientation is landscape
no setter
isLTR → bool

Available on BuildContext, provided by the BuildContextExt extension

Check if the current directionality is left-to-right
no setter
isPortrait → bool

Available on BuildContext, provided by the BuildContextExt extension

Check if the device orientation is portrait
no setter
isRTL → bool

Available on BuildContext, provided by the BuildContextExt extension

Check if the current directionality is right-to-left
no setter
isSmallScreen → bool

Available on BuildContext, provided by the BuildContextExt extension

Returns true if width < 360px (useful for responsive).
no setter
isTablet → bool

Available on BuildContext, provided by the BuildContextExt extension

Check if the device is tablet-sized (shortestSide ≥ 600)
no setter
keyboardHeight → double

Available on BuildContext, provided by the BuildContextExt extension

Get the height of the keyboard
no setter
linuxInfo → Future<LinuxDeviceInfo>

Available on BuildContext, provided by the BuildContextExt extension

Get the Linux device info
no setter
longestSide → double

Available on BuildContext, provided by the BuildContextExt extension

Returns the longest screen dimension.
no setter
macosInfo → Future<MacOsDeviceInfo>

Available on BuildContext, provided by the BuildContextExt extension

Get the macos device info
no setter
orientation → Orientation

Available on BuildContext, provided by the BuildContextExt extension

Get the device orientation
no setter
packageInfo → Future<PackageInfo>

Available on BuildContext, provided by the BuildContextExt extension

Get the package info
no setter
shortestSide → double

Available on BuildContext, provided by the BuildContextExt extension

Returns the shortest screen dimension.
no setter
textTheme → TextTheme

Available on BuildContext, provided by the BuildContextExt extension

Get the current TextTheme
no setter
theme → ThemeData

Available on BuildContext, provided by the BuildContextExt extension

Get the current ThemeData
no setter
topPadding → double

Available on BuildContext, provided by the BuildContextExt extension

Get the top padding of the MediaQuery
no setter
webBrowserInfo → Future<WebBrowserInfo>

Available on BuildContext, provided by the BuildContextExt extension

Get the web browser info
no setter
widgetPosition → Offset

Available on BuildContext, provided by the BuildContextExt extension

Returns global position of the widget.
no setter
widgetSize → Size

Available on BuildContext, provided by the BuildContextExt extension

Returns the size of the widget tied to this context.
no setter
windowsInfo → Future<WindowsDeviceInfo>

Available on BuildContext, provided by the BuildContextExt extension

Get the windows device info
no setter

Methods

hideKeyboard() → void

Available on BuildContext, provided by the BuildContextExt extension

Hide keyboard
pop<T extends Object?>({T? result}) → void

Available on BuildContext, provided by the BuildContextExt extension

Pop the current route off the navigator stack
popAndPushNamed<T extends Object?, TO extends Object?>(String route, {TO? result, Object? arguments}) → Future<T?>

Available on BuildContext, provided by the BuildContextExt extension

Pop the current route off the navigator stack and push a new route.
push<T extends Object?>(Widget page) → Future<T?>

Available on BuildContext, provided by the BuildContextExt extension

Push a new page with the given widget directly.
pushAndRemoveUntil<T extends Object?, TO extends Object?>(Widget page, bool predicate(Route)) → Future<T?>

Available on BuildContext, provided by the BuildContextExt extension

Push a page and remove until a route is found.
pushNamed<T extends Object?>(String routeName, {Object? arguments}) → Future<T?>

Available on BuildContext, provided by the BuildContextExt extension

Push a named route onto the navigator.
pushNamedAndRemoveUntil<T extends Object?, TO extends Object?>(String route, bool predicate(Route), {Object? arguments}) → Future<T?>

Available on BuildContext, provided by the BuildContextExt extension

Push a named route and remove until a route is found.
pushReplacement<T extends Object?, TO extends Object?>(Widget page, {Object? result}) → Future<T?>

Available on BuildContext, provided by the BuildContextExt extension

Push a replacement page with the given widget directly.
pushReplacementNamed<T extends Object?, TO extends Object?>(String route, {Object? result, Object? arguments}) → Future<T?>

Available on BuildContext, provided by the BuildContextExt extension

Push a replacement named route with arguments if needed.