Flutter not showing list of color swatches for colors in Android Studio

旧时模样 提交于 2020-06-25 05:00:13

问题


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.

Image of Android Studio:

Image of Visual Studio Code:

How can I make the color swatches visible in Android Studio?


回答1:


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

And for this version the corresponding latest Dart plugin version is 192.8052 released on May, 14.

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 Plugin Update Interface:

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).

Download version 192.7761 and install it like so:

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.



来源:https://stackoverflow.com/questions/62017394/flutter-not-showing-list-of-color-swatches-for-colors-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!