GetNavigation extension Null safety

on

Properties

arguments → dynamic
give current arguments
read-only
bottomBarHeight double
The distance from the bottom edge to the first unpadded pixel, in physical pixels.
read-only
context BuildContext?
give access to currentContext
read-only
currentRoute String
give name from current route
read-only
customTransition CustomTransition?
read / write
defaultDialogTransitionCurve Curve
read-only
defaultDialogTransitionDuration Duration
read-only
defaultOpaqueRoute bool
read-only
defaultPopGesture bool
read-only
defaultTransition Transition?
read-only
defaultTransitionCurve Curve
read-only
defaultTransitionDuration Duration
read-only
deviceLocale Locale?
read-only
engine WidgetsBinding?
The current WidgetsBinding
read-only
focusScope FocusNode?
give access to FocusScope.of(context)
read-only
height double
The vertical extent of this size
read-only
iconColor Color?
give access to Theme.of(context).iconTheme.color
read-only
isBottomSheetOpen bool?
check if bottomsheet is open
read-only
isDarkMode bool
Check if dark mode theme is enable
read-only
isDialogOpen bool?
check if dialog is open
read-only
isOpaqueRouteDefault bool
check if default opaque route is enable
read-only
isOverlaysClosed bool
Returns true if there is no Snackbar, Dialog or BottomSheet open
read-only
isOverlaysOpen bool
Returns true if a Snackbar, Dialog or BottomSheet is currently OPEN
read-only
isPlatformDarkMode bool
Check if dark mode theme is enable on platform on android Q+
read-only
isPopGestureEnable bool
check if popGesture is enable
read-only
isSnackbarOpen bool
check if snackbar is open
read-only
key GlobalKey<NavigatorState>
read-only
keys Map<dynamic, GlobalKey<NavigatorState>>
read-only
mediaQuery MediaQueryData
give access to Mediaquery.of(context)
read-only
overlayContext BuildContext?
give access to current Overlay Context
read-only
parameters Map<String, String?>
read / write
pixelRatio double
The number of device pixels for each logical pixel.
read-only
previousRoute String
give name from previous route
read-only
rawRoute Route?
check a raw current route
read-only
rootController GetMaterialController
read-only
routing Routing
read-only
size Size
read-only
statusBarHeight double
The distance from the top edge to the first unpadded pixel, in physical pixels.
read-only
testMode bool
read / write
textScaleFactor double
The system-reported text scale.
read-only
textTheme TextTheme
give access to TextTheme.of(context)
read-only
theme ThemeData
give access to Theme.of(context)
read-only
width double
The horizontal extent of this size.
read-only
window SingletonFlutterWindow
The window to which this binding is bound.
read-only

Methods

addKey(GlobalKey<NavigatorState> newKey) GlobalKey<NavigatorState>?
appUpdate() → void
back<T>({T? result, bool closeOverlays = false, bool canPop = true, int? id}) → void
Navigation.popUntil() shortcut.

[...]
changeTheme(ThemeData theme) → void
changeThemeMode(ThemeMode themeMode) → void
close(int times, [int? id]) → void
Navigation.popUntil() (with predicate) shortcut .

[...]
closeAllSnackbars() → void
closeCurrentSnackbar() Future<void>
config({bool? enableLog, LogWriterCallback? logWriterCallback, bool? defaultPopGesture, bool? defaultOpaqueRoute, Duration? defaultDurationTransition, bool? defaultGlobalState, Transition? defaultTransition}) → void
change default config of Get
forceAppUpdate() Future<void>
As a rule, Flutter knows which widget to update, so this command is rarely needed. We can mention situations where you use const so that widgets are not updated with setState, but you want it to be forcefully updated when an event like language change happens. using context to make the widget dirty for performRebuild() is a viable solution. However, in situations where this is not possible, or at least, is not desired by the developer, the only solution for updating widgets that Flutter does not want to update is to use reassemble to forcibly rebuild all widgets. Attention: calling this function will reconstruct the application from the sketch, use this with caution. Your entire application will be rebuilt, and touch events will not work until the end of rendering.
global(int? k) GlobalKey<NavigatorState>
nestedKey(dynamic key) GlobalKey<NavigatorState>?
off<T>(dynamic page, {bool opaque = false, Transition? transition, Curve? curve, bool? popGesture, int? id, String? routeName, dynamic arguments, Bindings? binding, bool fullscreenDialog = false, bool preventDuplicates = true, Duration? duration, double gestureWidth(BuildContext context)?}) Future<T?>?
Navigation.pushReplacement() shortcut .

[...]
offAll<T>(dynamic page, {RoutePredicate? predicate, bool opaque = false, bool? popGesture, int? id, String? routeName, dynamic arguments, Bindings? binding, bool fullscreenDialog = false, Transition? transition, Curve? curve, Duration? duration, double gestureWidth(BuildContext context)?}) Future<T?>?
Push a page and pop several pages in the stack until predicate returns true. predicate is optional [...]
offAllNamed<T>(String newRouteName, {RoutePredicate? predicate, dynamic arguments, int? id, Map<String, String>? parameters}) Future<T?>?
Navigation.pushNamedAndRemoveUntil() shortcut.

[...]
offAndToNamed<T>(String page, {dynamic arguments, int? id, dynamic result, Map<String, String>? parameters}) Future<T?>?
Navigation.popAndPushNamed() shortcut.

[...]
offNamed<T>(String page, {dynamic arguments, int? id, bool preventDuplicates = true, Map<String, String>? parameters}) Future<T?>?
Navigation.pushReplacementNamed() shortcut.

[...]
offNamedUntil<T>(String page, RoutePredicate predicate, {int? id, dynamic arguments, Map<String, String>? parameters}) Future<T?>?
Navigation.pushNamedAndRemoveUntil() shortcut.

[...]
offUntil<T>(Route<T> page, RoutePredicate predicate, {int? id}) Future<T?>?
Navigation.pushAndRemoveUntil() shortcut.

[...]
removeRoute(Route route, {int? id}) → void
Navigation.removeRoute() shortcut.

[...]
resetRootNavigator() → void
to<T>(dynamic page, {bool? opaque, Transition? transition, Curve? curve, Duration? duration, int? id, String? routeName, bool fullscreenDialog = false, dynamic arguments, Bindings? binding, bool preventDuplicates = true, bool? popGesture, double gestureWidth(BuildContext context)?}) Future<T?>?
Navigation.push() shortcut.

[...]
toNamed<T>(String page, {dynamic arguments, int? id, bool preventDuplicates = true, Map<String, String>? parameters}) Future<T?>?
Navigation.pushNamed() shortcut.

[...]
until(RoutePredicate predicate, {int? id}) → void
Navigation.popUntil() shortcut.

[...]
updateLocale(Locale l) Future<void>