BuildContextExtensions extension
- on
Properties
-
allNumberSymbols
→ Iterable<
NumberSymbols> -
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - alwaysUse24HourFormat → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - appBarTheme → AppBarTheme
-
Available on BuildContext, provided by the BuildContextExtensions extension
performs a simple Theme.of(context).appBarTheme action and returns given appBarThemeno setter - aspectRatio → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the aspect ratio of the screen.no setter -
aspectRatioParts
→ Iterable<
String> -
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the parts of the aspect ratio as an iterable of strings.no setter - aspectRatioString → String
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the aspect ratio as a string.no setter - bodyLarge → TextStyle?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Middle size of the body styles.no setter - bodyMedium → TextStyle?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Middle size of the body styles.no setter - bodySmall → TextStyle?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Smallest of the body styles.no setter - bottomAppBarTheme → BottomAppBarTheme
-
Available on BuildContext, provided by the BuildContextExtensions extension
performs a simple Theme.of(context).bottomAppBarTheme action and returns given bottomAppBarThemeno setter - bottomSheetTheme → BottomSheetThemeData
-
Available on BuildContext, provided by the BuildContextExtensions extension
performs a simple Theme.of(context).bottomSheetTheme action and returns given bottomSheetThemeno setter - boundary → RenderRepaintBoundary?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the boundary of the render object.no setter - colorScheme → ColorScheme
-
Available on BuildContext, provided by the BuildContextExtensions extension
performs a simple Theme.of(context).colorScheme action and returns given colorSchemeno setter - cupertinoLocalizations → CupertinoLocalizations
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - currentLocale → Locale
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - currentLocaleNumberSymbols → NumberSymbols?
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - devicePixelRatio → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
similar to MediaQuery.devicePixelRatioOf(context)no setter - displayLarge → TextStyle?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Largest of the display styles.no setter - displayMedium → TextStyle?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Middle size of the display styles.no setter - displaySmall → TextStyle?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Smallest of the display styles.no setter - dividerColor → Color
-
Available on BuildContext, provided by the BuildContextExtensions extension
The color of Dividers and PopupMenuDividers, also used between ListTiles, between rows in DataTables, and so forth.no setter - flutterView → FlutterView
-
Available on BuildContext, provided by the BuildContextExtensions extension
Return the current FlutterViewno setter - focusColor → Color
-
Available on BuildContext, provided by the BuildContextExtensions extension
The focus color used indicate that a component has the input focus.no setter - headlineLarge → TextStyle?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Largest of the headline styles.no setter - headlineMedium → TextStyle?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Middle size of the headline styles.no setter - headlineSmall → TextStyle?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Smallest of the headline styles.no setter - height → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - hoverColor → Color
-
Available on BuildContext, provided by the BuildContextExtensions extension
The hover color used to indicate when a pointer is hovering over a component.no setter - innerLibsLocalizations → InnerLibsLocalizations
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - is1x1 → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns true if the aspect ratio is 1:1.no setter - is3x2 → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns true if the aspect ratio is 3:2.no setter - is4x3 → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns true if the aspect ratio is 4:3.no setter - is5x4 → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns true if the aspect ratio is 5:4.no setter - is16x9 → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns true if the aspect ratio is 16:9.no setter - is21x9 → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns true if the aspect ratio is 21:9.no setter - isDarkMode → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
is dark mode currently enabled?no setter - isLargeTabletSize → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
True if the shortestSide is largest than 720pno setter - isLightMode → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
is light mode currently enabled?no setter - isOldTV → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - isPhoneSize → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
True if the shortestSide is smaller than 600pno setter - isSmallTabletSize → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
True if the shortestSide is largest than 600pno setter - isSquare → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - isTabletSize → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
True if the current device is Tabletno setter - isUltraWide → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - isWidescreen → bool
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - labelLarge → TextStyle?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Largest of the label styles.no setter - labelMedium → TextStyle?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Middle size of the label styles.no setter - labelSmall → TextStyle?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Smallest of the label styles.no setter - languageCode → string
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - logicalAspectRatio → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the logical aspect ratio of the screen.no setter - logicalAspectRatioString → String
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the logical aspect ratio as a string.no setter - logicalHeight → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the logical height of the screen.no setter - logicalScreenSize → Size
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - logicalWidth → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the logical width of the screen.no setter - longestSide → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the longest side of the screen.no setter - materialLocalizations → MaterialLocalizations
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - modalRoute → ModalRoute?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the ModalRoute associated with this BuildContext.no setter - modalRouteName → String?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the name of the modal route, if available. If the modal route is null or the settings name is null, it returns null.no setter - modalRouteSettings → RouteSettings?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the RouteSettings of the current modal route, ornull
if there is no modal route.no setter -
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - onErrorColor → Color
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the error color from the current theme's color scheme.no setter - onPrimaryColor → Color
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the color for displaying text on the primary color.no setter - onSecondaryColor → Color
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the color for the secondary element's text, based on the current theme.no setter - onSurfaceColor → Color
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the color of the surface text on the current theme.no setter - padding → ViewPadding
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - paddingBottom → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - paddingLeft → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - paddingRight → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - paddingTop → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - physicalAspectRatio → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the physical aspect ratio of the screen.no setter - physicalAspectRatioString → String
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the physical aspect ratio as a string.no setter - physicalHeight → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the physical height of the screen.no setter - physicalScreenSize → Size
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - physicalWidth → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the physical width of the screen.no setter - pixelRatio → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the pixel ratio of the screen.no setter - platformBrightness → Brightness
-
Available on BuildContext, provided by the BuildContextExtensions extension
similar to MediaQuery.platformBrightnessOf(context)no setter - primaryColor → Color
-
Available on BuildContext, provided by the BuildContextExtensions extension
performs a simple Theme.of(context).primaryColor action and returns given primaryColorno setter - primaryColorDark → Color
-
Available on BuildContext, provided by the BuildContextExtensions extension
A darker version of the primaryColor.no setter - primaryColorLight → Color
-
Available on BuildContext, provided by the BuildContextExtensions extension
A lighter version of the primaryColor.no setter - primaryTextTheme → TextTheme
-
Available on BuildContext, provided by the BuildContextExtensions extension
performs a simple Theme.of(context).primaryTextTheme action and returns given primaryTextThemeno setter - safeHeight → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the safe height of the screen.no setter - safeWidth → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
Returns the safe width of the screen.no setter - scaffold → ScaffoldState
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - scaffoldBackgroundColor → Color
-
Available on BuildContext, provided by the BuildContextExtensions extension
The default color of the Material that underlies the Scaffold. The background color for a typical material app or a page within the app.no setter - scaffoldMessenger → ScaffoldMessengerState
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - screenSize → Size
-
Available on BuildContext, provided by the BuildContextExtensions extension
This change makes MediaQuery an InheritedModel rather than an InheritedWidget, so any widget which knows it only depends on a specific property of MediaQuery the ability to declare that when reading the MediaQuery from the context. The same of MediaQuery.sizeOf(context)no setter - screenTier → ScreenTier
-
Available on BuildContext, provided by the BuildContextExtensions extension
the current ScreenTierno setter - shortestSide → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
get the shortestSide from screenno setter -
Available on BuildContext, provided by the BuildContextExtensions extension
True if width be larger than 800no setter - surfaceColor → Color
-
Available on BuildContext, provided by the BuildContextExtensions extension
performs a simple Theme.of(context).backgroundColor action and returns given surfaceColorno setter - textScaler → TextScaler
-
Available on BuildContext, provided by the BuildContextExtensions extension
similar to MediaQuery.textScaleFactorOf(context)no setter - textTheme → TextTheme
-
Available on BuildContext, provided by the BuildContextExtensions extension
performs a simple Theme.of(context).textTheme action and returns given textThemeno setter - theme → ThemeData
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - themeBrightness → Brightness
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - titleLarge → TextStyle?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Largest of the title styles.no setter - titleMedium → TextStyle?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Middle size of the title styles.no setter - titleSmall → TextStyle?
-
Available on BuildContext, provided by the BuildContextExtensions extension
Smallest of the title styles.no setter - translations → InnerLibsLocalizations
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter - viewInsets → EdgeInsets
-
Available on BuildContext, provided by the BuildContextExtensions extension
similar to MediaQuery.of(context).viewInsetsno setter - viewPadding → EdgeInsets
-
Available on BuildContext, provided by the BuildContextExtensions extension
similar to MediaQuery.of(context).viewPaddingno setter - width → double
-
Available on BuildContext, provided by the BuildContextExtensions extension
no setter
Methods
-
adaptativeSize(
[double? size, double factor = .1]) → double -
Available on BuildContext, provided by the BuildContextExtensions extension
a size computed by ScreenTier -
canPop(
) → bool -
Available on BuildContext, provided by the BuildContextExtensions extension
just call this canPop() method and it would return true if this route can be popped and false if it’s not possible. -
clearSnackBars(
) → void -
Available on BuildContext, provided by the BuildContextExtensions extension
-
focus(
[int times = 1]) → bool -
Available on BuildContext, provided by the BuildContextExtensions extension
Control the focus of the current contexttimes
is the number of times to move the focus. iftimes
is positive, it will move the focus forward. iftimes
is negative, it will move the focus backward. iftimes
is zero, it will unfocus the current context. -
localeNumberSymbols(
string localeCode) → NumberSymbols? -
Available on BuildContext, provided by the BuildContextExtensions extension
-
nextFocus(
) → bool -
Available on BuildContext, provided by the BuildContextExtensions extension
-
pop<
T> ([dynamic result]) → void -
Available on BuildContext, provided by the BuildContextExtensions extension
performs a simple Navigator.pop action and returns givenresult
-
popUntil(
RoutePredicate predicate) → void -
Available on BuildContext, provided by the BuildContextExtensions extension
perform replash with route predicate -
popUntilFirst(
) → void -
Available on BuildContext, provided by the BuildContextExtensions extension
perform a continuous pop until the first route -
popUntilRoute(
String screenName, { }) → void -
Available on BuildContext, provided by the BuildContextExtensions extension
perform replash with routeName -
previousFocus(
) → bool -
Available on BuildContext, provided by the BuildContextExtensions extension
-
push(
Widget screen, {RouteSettings? settings, bool maintainState = true, bool fullscreenDialog = false, }) → Future -
Available on BuildContext, provided by the BuildContextExtensions extension
performs a simple Navigator.push action with givenroute
-
pushAndRemoveUntil(
Widget screen, {RouteSettings? settings, bool maintainState = true, bool fullscreenDialog = false, bool routes = false, }) → Future -
Available on BuildContext, provided by the BuildContextExtensions extension
perform push and remove route -
pushNamed(
String screenName, {Object? arguments, }) → Future -
Available on BuildContext, provided by the BuildContextExtensions extension
perform push with routeName -
pushReplacement(
Widget screen, {RouteSettings? settings, bool maintainState = true, bool fullscreenDialog = false, }) → Future -
Available on BuildContext, provided by the BuildContextExtensions extension
performs a simple Navigator.pushReplacement action with givenroute
-
pushReplacementNamed(
String screenName, {Object? arguments, }) → Future -
Available on BuildContext, provided by the BuildContextExtensions extension
perform replash with routeName -
pushRoute(
Widget screen, {required string route, bool maintainState = true, bool fullscreenDialog = false, }) → Future -
Available on BuildContext, provided by the BuildContextExtensions extension
-
showSnackBar(
dynamic content) → ScaffoldFeatureController< SnackBar, SnackBarClosedReason> -
Available on BuildContext, provided by the BuildContextExtensions extension
Shows a SnackBar with the givencontent
in the current Scaffold. -
unfocus(
{UnfocusDisposition disposition = UnfocusDisposition.scope}) → void -
Available on BuildContext, provided by the BuildContextExtensions extension
-
until(
RoutePredicate predicate) → void -
Available on BuildContext, provided by the BuildContextExtensions extension
-
untilFirst(
) → void -
Available on BuildContext, provided by the BuildContextExtensions extension
-
untilRoute(
String screenName) → void -
Available on BuildContext, provided by the BuildContextExtensions extension
-
valueByBreakpoint<
T> ({required Map< double, T> breakpoints, Axis direction = Axis.horizontal}) → T -
Available on BuildContext, provided by the BuildContextExtensions extension
returns a specific value according to the current screen width or height or the next lower value if omitted -
valueByTier<
T> ({T? xxs, T? xs, T? sm, T? md, T? lg, T? xl, T? xxl}) → T -
Available on BuildContext, provided by the BuildContextExtensions extension
returns a specific value according to the current ScreenTier or the next lower value if omitted