File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,15 @@ class ZKContext {
24
24
}
25
25
26
26
double get screenWidth {
27
- return ui.window.physicalSize.width;
27
+ // https://stackoverflow.com/questions/76312328/flutter-3-10-window-is-deprecated-and-shouldnt-be-used
28
+ return WidgetsBinding
29
+ .instance.platformDispatcher.views.first.physicalSize.width;
28
30
}
29
31
30
32
double get screenHeight {
31
- return ui.window.physicalSize.height;
33
+ // ui.window.physicalSize
34
+ return WidgetsBinding
35
+ .instance.platformDispatcher.views.first.physicalSize.height;
32
36
}
33
37
34
38
double get appWidth {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ description: Zerker is a flexible and lightweight flutter canvas graphic animati
11
11
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
12
12
# Read more about iOS versioning at
13
13
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14
- version : 2.2.6
14
+ version : 2.3.1
15
15
homepage : https://github.com/flutterkit/zerker
16
16
17
17
environment :
You can’t perform that action at this time.
0 commit comments