Showing
2 changed files
with
36 additions
and
36 deletions
@@ -319,60 +319,60 @@ Get.context | @@ -319,60 +319,60 @@ Get.context | ||
319 | Get.contextOverlay | 319 | Get.contextOverlay |
320 | 320 | ||
321 | // If you need a changeable height/width (like browser windows that can be scaled) you will need to use context. | 321 | // If you need a changeable height/width (like browser windows that can be scaled) you will need to use context. |
322 | -context.width | ||
323 | -context.height | 322 | +Get.context.width |
323 | +Get.context.height | ||
324 | 324 | ||
325 | // gives you the power to define half the screen now, a third of it and so on. | 325 | // gives you the power to define half the screen now, a third of it and so on. |
326 | //Useful for responsive applications. | 326 | //Useful for responsive applications. |
327 | // param dividedBy (double) optional - default: 1 | 327 | // param dividedBy (double) optional - default: 1 |
328 | // param reducedBy (double) optional - default: 0 | 328 | // param reducedBy (double) optional - default: 0 |
329 | -context.heightTransformer() | ||
330 | -context.widthTransformer() | 329 | +Get.context.heightTransformer() |
330 | +Get.context.widthTransformer() | ||
331 | 331 | ||
332 | /// similar to MediaQuery.of(context).size | 332 | /// similar to MediaQuery.of(context).size |
333 | -context.mediaQuerySize() | 333 | +Get.context.mediaQuerySize() |
334 | 334 | ||
335 | /// similar to MediaQuery.of(context).padding | 335 | /// similar to MediaQuery.of(context).padding |
336 | -context.mediaQueryPadding() | 336 | +Get.context.mediaQueryPadding() |
337 | 337 | ||
338 | /// similar to MediaQuery.of(context).viewPadding | 338 | /// similar to MediaQuery.of(context).viewPadding |
339 | -context.mediaQueryViewPadding() | 339 | +Get.context.mediaQueryViewPadding() |
340 | 340 | ||
341 | /// similar to MediaQuery.of(context).viewInsets; | 341 | /// similar to MediaQuery.of(context).viewInsets; |
342 | -context.mediaQueryViewInsets() | 342 | +Get.context.mediaQueryViewInsets() |
343 | 343 | ||
344 | /// similar to MediaQuery.of(context).orientation; | 344 | /// similar to MediaQuery.of(context).orientation; |
345 | -context.orientation() | 345 | +Get.context.orientation() |
346 | 346 | ||
347 | /// check if device is on landscape mode | 347 | /// check if device is on landscape mode |
348 | -context.isLandscape() | 348 | +Get.context.isLandscape() |
349 | 349 | ||
350 | /// check if device is on portrait mode | 350 | /// check if device is on portrait mode |
351 | -context.isPortrait() | 351 | +Get.context.isPortrait() |
352 | 352 | ||
353 | /// similar to MediaQuery.of(context).devicePixelRatio; | 353 | /// similar to MediaQuery.of(context).devicePixelRatio; |
354 | -context.devicePixelRatio() | 354 | +Get.context.devicePixelRatio() |
355 | 355 | ||
356 | /// similar to MediaQuery.of(context).textScaleFactor; | 356 | /// similar to MediaQuery.of(context).textScaleFactor; |
357 | -context.textScaleFactor() | 357 | +Get.context.textScaleFactor() |
358 | 358 | ||
359 | /// get the shortestSide from screen | 359 | /// get the shortestSide from screen |
360 | -context.mediaQueryShortestSide() | 360 | +Get.context.mediaQueryShortestSide() |
361 | 361 | ||
362 | /// True if width be larger than 800 | 362 | /// True if width be larger than 800 |
363 | -context.showNavbar() | 363 | +Get.context.showNavbar() |
364 | 364 | ||
365 | /// True if the shortestSide is smaller than 600p | 365 | /// True if the shortestSide is smaller than 600p |
366 | -context.isPhone() | 366 | +Get.context.isPhone() |
367 | 367 | ||
368 | /// True if the shortestSide is largest than 600p | 368 | /// True if the shortestSide is largest than 600p |
369 | -context.isSmallTablet() | 369 | +Get.context.isSmallTablet() |
370 | 370 | ||
371 | /// True if the shortestSide is largest than 720p | 371 | /// True if the shortestSide is largest than 720p |
372 | -context.isLargeTablet() | 372 | +Get.context.isLargeTablet() |
373 | 373 | ||
374 | /// True if the current device is Tablet | 374 | /// True if the current device is Tablet |
375 | -context.isTablet() | 375 | +Get.context.isTablet() |
376 | ``` | 376 | ``` |
377 | 377 | ||
378 | ### Optional Global Settings and Manual configurations | 378 | ### Optional Global Settings and Manual configurations |
@@ -305,57 +305,57 @@ GetPlatform.isAndroid/isIOS/isWeb... | @@ -305,57 +305,57 @@ GetPlatform.isAndroid/isIOS/isWeb... | ||
305 | Get.height | 305 | Get.height |
306 | Get.width | 306 | Get.width |
307 | 307 | ||
308 | +// fornece o context da tela em qualquer lugar do seu código. | ||
309 | +Get.context | ||
310 | + | ||
308 | // Se você precisa de um width/height adaptável (como em navegadores em que a janela pode ser redimensionada) você precisa usar 'context' | 311 | // Se você precisa de um width/height adaptável (como em navegadores em que a janela pode ser redimensionada) você precisa usar 'context' |
309 | Get.context.width | 312 | Get.context.width |
310 | Get.context.height | 313 | Get.context.height |
311 | 314 | ||
312 | -// forncece o context da tela em qualquer lugar do seu código. | ||
313 | -Get.context | ||
314 | - | ||
315 | // fornece o context de snackbar/dialog/bottomsheet em qualquer lugar do seu código. | 315 | // fornece o context de snackbar/dialog/bottomsheet em qualquer lugar do seu código. |
316 | Get.contextOverlay | 316 | Get.contextOverlay |
317 | 317 | ||
318 | /// similar to MediaQuery.of(this).padding | 318 | /// similar to MediaQuery.of(this).padding |
319 | -Get.mediaQueryPadding() | 319 | +Get.context.mediaQueryPadding() |
320 | 320 | ||
321 | /// similar to MediaQuery.of(this).viewPadding | 321 | /// similar to MediaQuery.of(this).viewPadding |
322 | -Get.mediaQueryViewPadding() | 322 | +Get.context.mediaQueryViewPadding() |
323 | 323 | ||
324 | /// similar to MediaQuery.of(this).viewInsets; | 324 | /// similar to MediaQuery.of(this).viewInsets; |
325 | -Get.mediaQueryViewInsets() | 325 | +Get.context.mediaQueryViewInsets() |
326 | 326 | ||
327 | /// similar to MediaQuery.of(this).orientation; | 327 | /// similar to MediaQuery.of(this).orientation; |
328 | -Get.orientation() | 328 | +Get.context.orientation() |
329 | 329 | ||
330 | /// check if device is on landscape mode | 330 | /// check if device is on landscape mode |
331 | -Get.isLandscape() | 331 | +Get.context.isLandscape() |
332 | 332 | ||
333 | /// check if device is on portrait mode | 333 | /// check if device is on portrait mode |
334 | -Get.isPortrait() | 334 | +Get.context.isPortrait() |
335 | 335 | ||
336 | /// similar to MediaQuery.of(this).devicePixelRatio; | 336 | /// similar to MediaQuery.of(this).devicePixelRatio; |
337 | -Get.devicePixelRatio() | 337 | +Get.context.devicePixelRatio() |
338 | 338 | ||
339 | /// similar to MediaQuery.of(this).textScaleFactor; | 339 | /// similar to MediaQuery.of(this).textScaleFactor; |
340 | -Get.textScaleFactor() | 340 | +Get.context.textScaleFactor() |
341 | 341 | ||
342 | /// get the shortestSide from screen | 342 | /// get the shortestSide from screen |
343 | -Get.mediaQueryShortestSide() | 343 | +Get.context.mediaQueryShortestSide() |
344 | 344 | ||
345 | /// True if width be larger than 800 | 345 | /// True if width be larger than 800 |
346 | -Get.showNavbar() | 346 | +Get.context.showNavbar() |
347 | 347 | ||
348 | /// True if the shortestSide is smaller than 600p | 348 | /// True if the shortestSide is smaller than 600p |
349 | -Get.isPhone() | 349 | +Get.context.isPhone() |
350 | 350 | ||
351 | /// True if the shortestSide is largest than 600p | 351 | /// True if the shortestSide is largest than 600p |
352 | -Get.isSmallTablet() | 352 | +Get.context.isSmallTablet() |
353 | 353 | ||
354 | /// True if the shortestSide is largest than 720p | 354 | /// True if the shortestSide is largest than 720p |
355 | -Get.isLargeTablet() | 355 | +Get.context.isLargeTablet() |
356 | 356 | ||
357 | /// True if the current device is Tablet | 357 | /// True if the current device is Tablet |
358 | -Get.isTablet() | 358 | +Get.context.isTablet() |
359 | ``` | 359 | ``` |
360 | 360 | ||
361 | ### Configurações Globais opcionais e configurações manuais | 361 | ### Configurações Globais opcionais e configurações manuais |
-
Please register or login to post a comment