Flutter未显示Android Studio中颜色的色样列表 [英] Flutter not showing list of color swatches for colors in Android Studio
问题描述
我在Visual Studio Code中的flutter项目显示了色样,但是在Android Studio中却没有.如果要查看颜色,必须转到colors.dart
.
My flutter project in Visual Studio Code shows color swatches but in Android Studio, it doesn't. If I want to see the colors I have to go to colors.dart
.
Android Studio的图片:
Image of Android Studio:
Visual Studio代码的图像:
Image of Visual Studio Code:
如何在Android Studio中显示色样?
How can I make the color swatches visible in Android Studio?
推荐答案
实际上我有这个Android Studio版本:
Actually I have this Android Studio build:
Android Studio 3.6.3
Build #AI-192.7142.36.36.6392135, built on April 14, 2020
Runtime version: 1.8.0_212-release-1586-b04 amd64
对于该版本,相应的最新Dart插件版本已于5月14日发布192.8052
.
And for this version the corresponding latest Dart plugin version is 192.8052
released on May, 14.
在通过工具> SDK管理器>插件> Dart将Dart插件从版本192.7761
更新到版本192.8052
之后,我在3台不同的计算机上进行了尝试
I tried it on 3 different machines, after the Dart plugin update from version 192.7761
to version 192.8052
via Tools > SDK Manager > Plugins > Dart
Dart插件更新界面:
Dart Plugin Update Interface:
在所有情况下,工具提示都停止显示色样,就像您的情况一样.卸载Dart插件192.8052
版并使用插件界面,您可以从
In all cases tooltip stopped showing color swatches, like in your case. Uninstalling the Dart plugin v. 192.8052
and using the plugins interface, you can download the previous versions for the build 192.5728 — 192.*
of Android Studio from this page (to do so click on show more until Nov 19, 2019).
下载版本192.7761
并按以下方式安装:
Download version 192.7761
and install it like so:
重新启动IDE后,您会看到颜色样本.
After restarting the IDE you can see color swatches.
我认为这不是最好的解决方案,但我认为很快就会有新的更新. 但是,如果您需要最新版本的插件,则可以随时再次对其进行更新.
I don't think it's the best solution, but I think there will be a new update soon. However, if you want the latest version of the plugin you can always update it again.
这篇关于Flutter未显示Android Studio中颜色的色样列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!