Skip to content

Commit 73cbb81

Browse files
committed
🐛 fix(wxscan_live): the Flutter floor is 3.44, not the template's 3.19
Below 3.44 this package white-screens on rotation and nothing it can do fixes it. Engines up to 3.41 gate viewport metrics behind an AtomicBoolean that stops them reaching Dart on a resize; rotation is a resize, so Dart stays on the old orientation permanently and the window's own colour shows through the part it no longer fills. The fix is flutter/flutter #182326, first released in 3.44.0. A live scanner is rotated constantly, so 3.19 was an invitation to a bug report no answer could close. CI builds on 3.47.1, and 3.19 was never anything but the plugin template's default — inherited, not chosen, and untested for its whole life here. Also corrects the publish-kit README, in both languages: the plan holds seven targets, not eight. Claude-Session: https://claude.ai/code/session_01LUd3wQYNv84t7MqwxxaSKD
1 parent 7f571a2 commit 73cbb81

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

‎packages/wxscan_live/pubspec.yaml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ issue_tracker: https://github.com/wilinz/wxscan/issues
77

88
environment:
99
sdk: ">=3.10.0 <4.0.0"
10-
flutter: ">=3.19.0"
10+
# Not the plugin template's 3.19: below 3.44 this package white-screens on
11+
# rotation, and no version of it can fix that. Engines up to 3.41 gate the
12+
# viewport metrics behind an AtomicBoolean that stops them reaching Dart on a
13+
# resize; rotation is a resize, so Dart stays on the old orientation for good
14+
# and the window's own colour shows through. The fix is flutter/flutter
15+
# #182326, first released in 3.44.0. A live scanner is rotated constantly, so
16+
# this is the floor, not a preference.
17+
flutter: ">=3.44.0"
1118

1219
dependencies:
1320
flutter_web_plugins:

‎publish-kit/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Release driver for wxscan. Ported from [wilinz/froom](https://github.com/wilinz/froom/tree/develop/publish-kit)'s
66
publish-kit, which publishes four packages from one repository to pub.dev.
77

8-
wxscan publishes **eight targets from four repositories to two registries**, so
8+
wxscan publishes **seven targets from four repositories to two registries**, so
99
what carried over is the shape — ordered publishing, waiting for the registry
1010
between steps, skipping what is already up — and the rest is new.
1111

‎publish-kit/README.zh-CN.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
wxscan 的发布驱动器。从 [wilinz/froom](https://github.com/wilinz/froom/tree/develop/publish-kit)
66
的 publish-kit 移植过来,那套是把一个仓库里的四个包发到 pub.dev。
77

8-
wxscan 要把**四个仓库里的八个目标发到两个注册表**,所以沿用下来的只是形状——按顺序
8+
wxscan 要把**四个仓库里的七个目标发到两个注册表**,所以沿用下来的只是形状——按顺序
99
发布、每步之间等注册表、已经上去的跳过——其余都重写了。
1010

1111
## 跟 froom 那套的区别

0 commit comments

Comments
 (0)