Nipodemos

document undocumentend get methods

... ... @@ -242,38 +242,95 @@ MaterialApp(
```
```dart
Get.arguments // give the current args from currentScreen
// give the current args from currentScreen
Get.arguments
Get.previousArguments // give arguments of previous route
// give arguments of previous route
Get.previousArguments
Get.previousRoute // give name of previous route
// give name of previous route
Get.previousRoute
Get.rawRoute // give the raw route to access for example, rawRoute.isFirst()
// give the raw route to access for example, rawRoute.isFirst()
Get.rawRoute
Get.routing // give access to Rounting API from GetObserver
// give access to Rounting API from GetObserver
Get.routing
Get.isSnackbarOpen // check if snackbar is open
// check if snackbar is open
Get.isSnackbarOpen
Get.isDialogOpen // check if dialog is open
// check if dialog is open
Get.isDialogOpen
Get.isBottomSheetOpen // check if bottomsheet is open
// check if bottomsheet is open
Get.isBottomSheetOpen
Get.removeRoute() // remove one route.
// remove one route.
Get.removeRoute()
Get.until() // back repeatedly until the predicate returns true.
// back repeatedly until the predicate returns true.
Get.until()
Get.offUntil() // go to next route and remove all the previous routes until the predicate returns true.
// go to next route and remove all the previous routes until the predicate returns true.
Get.offUntil()
Get.offNamedUntil() // go to next named route and remove all the previous routes until the predicate returns true.
// go to next named route and remove all the previous routes until the predicate returns true.
Get.offNamedUntil()
GetPlatform.isAndroid/isIOS/isWeb... //(This method is completely compatible with FlutterWeb, unlike the framework. "Platform.isAndroid")
//(This method is completely compatible with FlutterWeb, unlike the framework. "Platform.isAndroid")
// Equivalent to the method: MediaQuery.of(context).size.height, but they are immutable. If you need a changeable height/width (like browser windows that can be scaled) you will need to use context.height and context.width
GetPlatform.isAndroid/isIOS/isWeb...
Get.height / Get.width // Equivalent to the method: MediaQuery.of(context).size.height, but they are immutable. If you need a changeable height/width (like browser windows that can be scaled) you will need to use context.height and context.width
Get.height / Get.width
Get.context // Gives the context of the screen in the foreground anywhere in your code.
// Gives the context of the screen in the foreground anywhere in your code.
Get.context
Get.contextOverlay // Gives the context of the snackbar/dialog/bottomsheet in the foreground anywhere in your code.
// Gives the context of the snackbar/dialog/bottomsheet in the foreground anywhere in your code.
Get.contextOverlay
/// similar to MediaQuery.of(this).padding
Get.mediaQueryPadding()
/// similar to MediaQuery.of(this).viewPadding
Get.mediaQueryViewPadding()
/// similar to MediaQuery.of(this).viewInsets;
Get.mediaQueryViewInsets()
/// similar to MediaQuery.of(this).orientation;
Get.orientation()
/// check if device is on landscape mode
Get.isLandscape()
/// check if device is on portrait mode
Get.isPortrait()
/// similar to MediaQuery.of(this).devicePixelRatio;
Get.devicePixelRatio()
/// similar to MediaQuery.of(this).textScaleFactor;
Get.textScaleFactor()
/// get the shortestSide from screen
Get.mediaQueryShortestSide()
/// True if width be larger than 800
Get.showNavbar()
/// True if the shortestSide is smaller than 600p
Get.isPhone()
/// True if the shortestSide is largest than 600p
Get.isSmallTablet()
/// True if the shortestSide is largest than 720p
Get.isLargeTablet()
/// True if the current device is Tablet
Get.isTablet()
```
### Configuraciones globales opcionales
... ...
... ... @@ -307,6 +307,47 @@ Get.context
// Gives the context of the snackbar/dialog/bottomsheet in the foreground anywhere in your code.
Get.contextOverlay
/// similar to MediaQuery.of(this).padding
Get.mediaQueryPadding()
/// similar to MediaQuery.of(this).viewPadding
Get.mediaQueryViewPadding()
/// similar to MediaQuery.of(this).viewInsets;
Get.mediaQueryViewInsets()
/// similar to MediaQuery.of(this).orientation;
Get.orientation()
/// check if device is on landscape mode
Get.isLandscape()
/// check if device is on portrait mode
Get.isPortrait()
/// similar to MediaQuery.of(this).devicePixelRatio;
Get.devicePixelRatio()
/// similar to MediaQuery.of(this).textScaleFactor;
Get.textScaleFactor()
/// get the shortestSide from screen
Get.mediaQueryShortestSide()
/// True if width be larger than 800
Get.showNavbar()
/// True if the shortestSide is smaller than 600p
Get.isPhone()
/// True if the shortestSide is largest than 600p
Get.isSmallTablet()
/// True if the shortestSide is largest than 720p
Get.isLargeTablet()
/// True if the current device is Tablet
Get.isTablet()
```
### Optional Global Settings and Manual configurations
... ...
... ... @@ -315,6 +315,47 @@ Get.context
// fornece o context de snackbar/dialog/bottomsheet em qualquer lugar do seu código.
Get.contextOverlay
/// similar to MediaQuery.of(this).padding
Get.mediaQueryPadding()
/// similar to MediaQuery.of(this).viewPadding
Get.mediaQueryViewPadding()
/// similar to MediaQuery.of(this).viewInsets;
Get.mediaQueryViewInsets()
/// similar to MediaQuery.of(this).orientation;
Get.orientation()
/// check if device is on landscape mode
Get.isLandscape()
/// check if device is on portrait mode
Get.isPortrait()
/// similar to MediaQuery.of(this).devicePixelRatio;
Get.devicePixelRatio()
/// similar to MediaQuery.of(this).textScaleFactor;
Get.textScaleFactor()
/// get the shortestSide from screen
Get.mediaQueryShortestSide()
/// True if width be larger than 800
Get.showNavbar()
/// True if the shortestSide is smaller than 600p
Get.isPhone()
/// True if the shortestSide is largest than 600p
Get.isSmallTablet()
/// True if the shortestSide is largest than 720p
Get.isLargeTablet()
/// True if the current device is Tablet
Get.isTablet()
```
### Configurações Globais opcionais e configurações manuais
... ...