Showing
1 changed file
with
7 additions
and
7 deletions
| @@ -680,19 +680,19 @@ context.height | @@ -680,19 +680,19 @@ context.height | ||
| 680 | context.heightTransformer() | 680 | context.heightTransformer() |
| 681 | context.widthTransformer() | 681 | context.widthTransformer() |
| 682 | 682 | ||
| 683 | -/// Similar to MediaQuery.of(context).size | 683 | +/// Similar to MediaQuery.sizeOf(context); |
| 684 | context.mediaQuerySize() | 684 | context.mediaQuerySize() |
| 685 | 685 | ||
| 686 | -/// Similar to MediaQuery.of(context).padding | 686 | +/// Similar to MediaQuery.paddingOf(context); |
| 687 | context.mediaQueryPadding() | 687 | context.mediaQueryPadding() |
| 688 | 688 | ||
| 689 | -/// Similar to MediaQuery.of(context).viewPadding | 689 | +/// Similar to MediaQuery.viewPaddingOf(context); |
| 690 | context.mediaQueryViewPadding() | 690 | context.mediaQueryViewPadding() |
| 691 | 691 | ||
| 692 | -/// Similar to MediaQuery.of(context).viewInsets; | 692 | +/// Similar to MediaQuery.viewInsetsOf(context); |
| 693 | context.mediaQueryViewInsets() | 693 | context.mediaQueryViewInsets() |
| 694 | 694 | ||
| 695 | -/// Similar to MediaQuery.of(context).orientation; | 695 | +/// Similar to MediaQuery.orientationOf(context); |
| 696 | context.orientation() | 696 | context.orientation() |
| 697 | 697 | ||
| 698 | /// Check if device is on landscape mode | 698 | /// Check if device is on landscape mode |
| @@ -701,10 +701,10 @@ context.isLandscape() | @@ -701,10 +701,10 @@ context.isLandscape() | ||
| 701 | /// Check if device is on portrait mode | 701 | /// Check if device is on portrait mode |
| 702 | context.isPortrait() | 702 | context.isPortrait() |
| 703 | 703 | ||
| 704 | -/// Similar to MediaQuery.of(context).devicePixelRatio; | 704 | +/// Similar to MediaQuery.devicePixelRatioOf(context); |
| 705 | context.devicePixelRatio() | 705 | context.devicePixelRatio() |
| 706 | 706 | ||
| 707 | -/// Similar to MediaQuery.of(context).textScaleFactor; | 707 | +/// Similar to MediaQuery.textScaleFactorOf(context); |
| 708 | context.textScaleFactor() | 708 | context.textScaleFactor() |
| 709 | 709 | ||
| 710 | /// Get the shortestSide from screen | 710 | /// Get the shortestSide from screen |
-
Please register or login to post a comment