Flutter UI 指南未在 Android Studio 中显示 [英] Flutter UI Guides not showing in Android Studio

查看:53
本文介绍了Flutter UI 指南未在 Android Studio 中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Android Studio V4.1.3(版本号 Al-201.8743.12.41.7199119)中,即使在设置中启用了小部件和方法的 Flutter UI 指南也根本没有显示.请看截图=>无 Flutter UI 指南

In Android Studio V4.1.3 (build no. Al-201.8743.12.41.7199119) The Flutter UI guides for widgets and methods not showing at all even though it is enabled in the settings. Please, be kind to see the screenshot => no Flutter UI guides

我安装了 Flutter Plugin V55.1.1 和 Dart Plugin V201.9335.

I have Flutter Plugin V55.1.1 and Dart Plugin V201.9335 installed.

非常感谢您的所有帮助.

All your help is highly appreciated.

谢谢

推荐答案

我有和你一样的 android studio 版本和 Flutter Plugin V55.1.1Dart 插件 V201.9380 已安装.得到同样的问题.我什至尝试启用和禁用显示构建方法的 UI 指南".在设置 >语言&框架 >颤动,但没有任何作用.

I have the same android studio version as you and Flutter Plugin V55.1.1 and Dart Plugin V201.9380 installed. Getting the same issue. I have even tried to enable and disable the "Show UI guidelines for build methods" in Setting > Language & Frameworks > Flutter, but nothings work.

我从 GitHub 克隆了 flutter/sample 并且似乎 UI 指南显示在这些示例上项目.

I cloned flutter/sample from GitHub and it seem that the UI guides is showing on that samples project.

我目前的(有点简单的作弊)解决方案是通过 VS Code 创建一个新的 Flutter 应用程序项目.当我在 Android Studio 上打开那个 flutter 项目时,UI 指南就在那里.我已经使用 Dart 代码的推荐设置配置了我的 VS 代码.

My current (kinda easy cheat) solution right now is by creating a New Flutter application project via VS Code. And when I open that flutter project on Android studio, the UI guides is there. I have configure my VS Code with the recommended setting for Dart code.

配置 VS Code 的教程参考:https://youtu.be/nAmOt5_fMtU?t=278

Tutorial to configure your VS Code reference: https://youtu.be/nAmOt5_fMtU?t=278

我是 Flutter 开发的新手,但我很确定我们可以在 Android Studio 上配置一些东西,看到从 VS Code 生成的项目文件确实显示了 UI 指南.如果有人知道如何让我知道.干杯!

I'm pretty new in flutter development but I'm pretty sure there might be something that we can configure on Android Studio seeing that generated project file from VS Code does shows the UI guideline. If someone know how do let me know. Cheers!

这篇关于Flutter UI 指南未在 Android Studio 中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆