showSemanticsDebugger 不再工作

问题描述 投票:0回答:1

当我将

showSemanticsDebugger
设置为
true
时,它应该显示语义树表示,大约 2 个月前它工作得很好,但现在不行了。我怀疑这是与最新版本的 Flutter SDK 有关的问题。

有人面临同样的问题吗?

这是 flutter doctor 的输出:

[✓] Flutter (Channel stable, 3.16.5, on Ubuntu 22.04.3 LTS 6.2.0-39-generic, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2022.3)
[✓] Connected device (3 available)
[✓] Network resources
flutter semantics
1个回答
0
投票

使用 accessibility_tools 包神奇地解决了问题并显示了正确的语义表示

© www.soinside.com 2019 - 2024. All rights reserved.