Flutter 应用程序正在模拟器中运行,但 Flutter Widget Inspector 未显示
我正在模拟器上成功运行我的 flutter 应用程序。但是,我需要使用 Widget Inspector 进行测试。
要运行我的应用程序,我使用以下命令:
flutter run --flavor dev -t lib/main_prod.dart
但是,当我使用调色板调出“Open DevTools”时,我最终得到的是如图所示
我在运行我的应用程序之前已经运行了 flutter clean,但它仍然不起作用。
请帮忙!
I am running my flutter app successfully on my emulator. However, I need the use of the Widget Inspector for testing purposes.
To run my app I use the following:
flutter run --flavor dev -t lib/main_prod.dart
However, when I use the palette to bring up the "Open DevTools" I end up getting what is shown in the image
I've run flutter clean before running my app and it still didn't work.
Please help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当您在终端中通过命令运行它时,您将看到在此过程中生成的 URL。
输入此 URL 以在浏览器上的 DevTools 中进行连接
如果您的项目需要使用旧版本3.3.9,你可以做到。如果没有,您可以升级到版本 3.7.4
When you run it by your command in a terminal, you will see the URL which is generated during the process.
Enter this URL to connect in DevTools on your browser
If your project requires to use of an old version of 3.3.9, you could do it. If not, you could upgrade to version 3.7.4
没关系,我已经弄清楚了。
我一直在寻找典型的弹出工具栏并忽略了这一点:
只需按“h”即可“列出所有可用的交互式命令”。提出了一个更全面的列表,其中包含检查员选项:
按“v”可以打开此处的颤动工具。
Never mind, I figured it out.
I was looking for the typical pop-up tool bar and overlooked this:
Simply pressing "h" for "List all available interactive commands." brought up a more comprehensive list with the option for an inspector:
Pressing "v" to open the flutter tools here works.