Flutter 未显示 Android Studio 中颜色的色板列表 [英] Flutter not showing list of color swatches for colors in Android Studio

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

问题描述

我在 Visual Studio Code 中的 flutter 项目显示色板,但在 Android Studio 中却没有.如果我想看到颜色,我必须去colors.dart.

Android Studio 的图片:

Visual Studio Code 的图片:

如何在 Android Studio 中显示色板?

解决方案

其实我有这个 Android Studio 版本:

Android Studio 3.6.3Build #AI-192.7142.36.36.6392135,建于 2020 年 4 月 14 日运行时版本:1.8.0_212-release-1586-b04 amd64

此版本对应的最新 Dart 插件版本是 192.8052 于 5 月 14 日发布.

我在 3 台不同的机器上尝试了它,在 Dart 插件从 192.7761 版本更新到 192.8052 版本后,通过工具 > SDK 管理器 > 插件 > Dart

Dart 插件更新界面:

在所有情况下,工具提示都停止显示色板,就像您的情况一样.卸载 Dart 插件 v. 192.8052 并使用插件界面,您可以从

重新启动 IDE 后,您可以看到色样.

我认为这不是最好的解决方案,但我认为很快就会有新的更新.但是,如果您想要插件的最新版本,您可以随时再次更新.

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?

解决方案

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.

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

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