Nipodemos

fix methods, all require context

Showing 1 changed file with 30 additions and 20 deletions
... ... @@ -301,53 +301,63 @@ GetPlatform.isWeb
Get.height
Get.width
// gives you the power to define half the screen now, a third of it and so on. A dynamic width/heigth
//Useful for responsive applications.
// param dividedBy (double) optional - default: 1
// param reducedBy (double) optional - default: 0
Get.context.heightTransformer()
Get.context.widthTransformer()
// Gives the context of the screen in the foreground anywhere in your code.
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(context).size
Get.context.mediaQuerySize()
/// similar to MediaQuery.of(context).padding
Get.context.mediaQueryPadding()
/// similar to MediaQuery.of(this).viewPadding
Get.mediaQueryViewPadding()
/// similar to MediaQuery.of(context).viewPadding
Get.context.mediaQueryViewPadding()
/// similar to MediaQuery.of(this).viewInsets;
Get.mediaQueryViewInsets()
/// similar to MediaQuery.of(context).viewInsets;
Get.context.mediaQueryViewInsets()
/// similar to MediaQuery.of(this).orientation;
Get.orientation()
/// similar to MediaQuery.of(context).orientation;
Get.context.orientation()
/// check if device is on landscape mode
Get.isLandscape()
Get.context.isLandscape()
/// check if device is on portrait mode
Get.isPortrait()
Get.context.isPortrait()
/// similar to MediaQuery.of(this).devicePixelRatio;
Get.devicePixelRatio()
/// similar to MediaQuery.of(context).devicePixelRatio;
Get.context.devicePixelRatio()
/// similar to MediaQuery.of(this).textScaleFactor;
Get.textScaleFactor()
/// similar to MediaQuery.of(context).textScaleFactor;
Get.context.textScaleFactor()
/// get the shortestSide from screen
Get.mediaQueryShortestSide()
Get.context.mediaQueryShortestSide()
/// True if width be larger than 800
Get.showNavbar()
Get.context.showNavbar()
/// True if the shortestSide is smaller than 600p
Get.isPhone()
Get.context.isPhone()
/// True if the shortestSide is largest than 600p
Get.isSmallTablet()
Get.context.isSmallTablet()
/// True if the shortestSide is largest than 720p
Get.isLargeTablet()
Get.context.isLargeTablet()
/// True if the current device is Tablet
Get.isTablet()
Get.context.isTablet()
```
### Optional Global Settings and Manual configurations
... ...