Nipodemos

edit based on new info on PR

@@ -278,11 +278,18 @@ Get.offUntil() @@ -278,11 +278,18 @@ Get.offUntil()
278 // go to next named route and remove all the previous routes until the predicate returns true. 278 // go to next named route and remove all the previous routes until the predicate returns true.
279 Get.offNamedUntil() 279 Get.offNamedUntil()
280 280
281 -//(This method is completely compatible with FlutterWeb, unlike the framework. "Platform.isAndroid")  
282 -// 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  
283 -GetPlatform.isAndroid/isIOS/isWeb... 281 +//Check in what platform the app is running
  282 +GetPlatform.isAndroid
  283 +GetPlatform.isIOS
  284 +GetPlatform.isWeb
284 285
285 -Get.height / Get.width 286 +// Equivalent to the method: MediaQuery.of(context).size.height, but they are immutable.
  287 +Get.height
  288 +Get.width
  289 +
  290 +// If you need a changeable height/width (like browser windows that can be scaled) you will need to use context.
  291 +Get.context.width
  292 +Get.context.height
286 293
287 // Gives the context of the screen in the foreground anywhere in your code. 294 // Gives the context of the screen in the foreground anywhere in your code.
288 Get.context 295 Get.context
@@ -290,47 +297,57 @@ Get.context @@ -290,47 +297,57 @@ Get.context
290 // Gives the context of the snackbar/dialog/bottomsheet in the foreground anywhere in your code. 297 // Gives the context of the snackbar/dialog/bottomsheet in the foreground anywhere in your code.
291 Get.contextOverlay 298 Get.contextOverlay
292 299
293 -/// similar to MediaQuery.of(this).padding  
294 -Get.mediaQueryPadding() 300 +// gives you the power to define half the screen now, a third of it and so on.
  301 +//Useful for responsive applications.
  302 +// param dividedBy (double) optional - default: 1
  303 +// param reducedBy (double) optional - default: 0
  304 +Get.context.heightTransformer()
  305 +Get.context.widthTransformer()
  306 +
  307 +/// similar to MediaQuery.of(context).size
  308 +Get.context.mediaQuerySize()
  309 +
  310 +/// similar to MediaQuery.of(context).padding
  311 +Get.context.mediaQueryPadding()
295 312
296 -/// similar to MediaQuery.of(this).viewPadding  
297 -Get.mediaQueryViewPadding() 313 +/// similar to MediaQuery.of(context).viewPadding
  314 +Get.context.mediaQueryViewPadding()
298 315
299 -/// similar to MediaQuery.of(this).viewInsets;  
300 -Get.mediaQueryViewInsets() 316 +/// similar to MediaQuery.of(context).viewInsets;
  317 +Get.context.mediaQueryViewInsets()
301 318
302 -/// similar to MediaQuery.of(this).orientation;  
303 -Get.orientation() 319 +/// similar to MediaQuery.of(context).orientation;
  320 +Get.context.orientation()
304 321
305 /// check if device is on landscape mode 322 /// check if device is on landscape mode
306 -Get.isLandscape() 323 +Get.context.isLandscape()
307 324
308 /// check if device is on portrait mode 325 /// check if device is on portrait mode
309 -Get.isPortrait() 326 +Get.context.isPortrait()
310 327
311 -/// similar to MediaQuery.of(this).devicePixelRatio;  
312 -Get.devicePixelRatio() 328 +/// similar to MediaQuery.of(context).devicePixelRatio;
  329 +Get.context.devicePixelRatio()
313 330
314 -/// similar to MediaQuery.of(this).textScaleFactor;  
315 -Get.textScaleFactor() 331 +/// similar to MediaQuery.of(context).textScaleFactor;
  332 +Get.context.textScaleFactor()
316 333
317 /// get the shortestSide from screen 334 /// get the shortestSide from screen
318 -Get.mediaQueryShortestSide() 335 +Get.context.mediaQueryShortestSide()
319 336
320 /// True if width be larger than 800 337 /// True if width be larger than 800
321 -Get.showNavbar() 338 +Get.context.showNavbar()
322 339
323 /// True if the shortestSide is smaller than 600p 340 /// True if the shortestSide is smaller than 600p
324 -Get.isPhone() 341 +Get.context.isPhone()
325 342
326 /// True if the shortestSide is largest than 600p 343 /// True if the shortestSide is largest than 600p
327 -Get.isSmallTablet() 344 +Get.context.isSmallTablet()
328 345
329 /// True if the shortestSide is largest than 720p 346 /// True if the shortestSide is largest than 720p
330 -Get.isLargeTablet() 347 +Get.context.isLargeTablet()
331 348
332 /// True if the current device is Tablet 349 /// True if the current device is Tablet
333 -Get.isTablet() 350 +Get.context.isTablet()
334 ``` 351 ```
335 352
336 ### Configuraciones globales opcionales 353 ### Configuraciones globales opcionales
@@ -297,16 +297,13 @@ GetPlatform.isIOS @@ -297,16 +297,13 @@ GetPlatform.isIOS
297 GetPlatform.isWeb 297 GetPlatform.isWeb
298 298
299 // Equivalent to the method: MediaQuery.of(context).size.height, but they are immutable. 299 // Equivalent to the method: MediaQuery.of(context).size.height, but they are immutable.
300 -// If you need a changeable height/width (like browser windows that can be scaled) you will need to use context.  
301 Get.height 300 Get.height
302 Get.width 301 Get.width
303 302
304 -// gives you the power to define half the screen now, a third of it and so on. A dynamic width/heigth  
305 -//Useful for responsive applications.  
306 -// param dividedBy (double) optional - default: 1  
307 -// param reducedBy (double) optional - default: 0  
308 -Get.context.heightTransformer()  
309 -Get.context.widthTransformer() 303 +// If you need a changeable height/width (like browser windows that can be scaled) you will need to use context.
  304 +Get.context.width
  305 +Get.context.height
  306 +
310 307
311 // Gives the context of the screen in the foreground anywhere in your code. 308 // Gives the context of the screen in the foreground anywhere in your code.
312 Get.context 309 Get.context
@@ -314,6 +311,13 @@ Get.context @@ -314,6 +311,13 @@ Get.context
314 // Gives the context of the snackbar/dialog/bottomsheet in the foreground anywhere in your code. 311 // Gives the context of the snackbar/dialog/bottomsheet in the foreground anywhere in your code.
315 Get.contextOverlay 312 Get.contextOverlay
316 313
  314 +// gives you the power to define half the screen now, a third of it and so on.
  315 +//Useful for responsive applications.
  316 +// param dividedBy (double) optional - default: 1
  317 +// param reducedBy (double) optional - default: 0
  318 +Get.context.heightTransformer()
  319 +Get.context.widthTransformer()
  320 +
317 /// similar to MediaQuery.of(context).size 321 /// similar to MediaQuery.of(context).size
318 Get.context.mediaQuerySize() 322 Get.context.mediaQuerySize()
319 323
@@ -299,16 +299,14 @@ Get.offNamedUntil() @@ -299,16 +299,14 @@ Get.offNamedUntil()
299 //diferente do método do framework "Platform.isAndroid") 299 //diferente do método do framework "Platform.isAndroid")
300 GetPlatform.isAndroid/isIOS/isWeb... 300 GetPlatform.isAndroid/isIOS/isWeb...
301 301
302 -// Equivalente ao método: MediaQuery.of(context).size.height, mas é imutável.  
303 -// Se você precisa de um height adaptável (como em navegadores em que a janela pode ser redimensionada)  
304 -// você precisa usar 'context.height' 302 +// Equivalente ao método: MediaQuery.of(context).size.width ou height, mas é imutável. Significa que não irá atualizar mesmo que o tamanho da tela mude (como em navegadores ou app desktop)
305 Get.height 303 Get.height
306 -  
307 -// Equivalente ao método: MediaQuery.of(context).size.width, mas é imutável.  
308 -// Se você precisa de um width adaptável (como em navegadores em que a janela pode ser redimensionada)  
309 -// você precisa usar 'context.width'  
310 Get.width 304 Get.width
311 305
  306 +// Se você precisa de um width/height adaptável (como em navegadores em que a janela pode ser redimensionada) você precisa usar 'context'
  307 +Get.context.width
  308 +Get.context.height
  309 +
312 // forncece o context da tela em qualquer lugar do seu código. 310 // forncece o context da tela em qualquer lugar do seu código.
313 Get.context 311 Get.context
314 312