Committed by
GitHub
Replace window.viewConfiguration.geometry to window.physicalGeometry (#464)
Co-authored-by: Daniil Makeev <daniil.makeev@alfatraining.de>
Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -61,7 +61,7 @@ class ScreenUtil { | @@ -61,7 +61,7 @@ class ScreenUtil { | ||
| 61 | final binding = WidgetsFlutterBinding.ensureInitialized(); | 61 | final binding = WidgetsFlutterBinding.ensureInitialized(); |
| 62 | window ??= binding.window; | 62 | window ??= binding.window; |
| 63 | 63 | ||
| 64 | - if (window.viewConfiguration.geometry.isEmpty) { | 64 | + if (window.physicalGeometry.isEmpty) { |
| 65 | return Future.delayed(duration, () async { | 65 | return Future.delayed(duration, () async { |
| 66 | binding.deferFirstFrame(); | 66 | binding.deferFirstFrame(); |
| 67 | await ensureScreenSize(window, duration); | 67 | await ensureScreenSize(window, duration); |
-
Please register or login to post a comment