Description
Steps to Reproduce
I'm trying to create a custom palette of colors where the squares of the color preview can be seen in the IDE.
I created a class Palette
with static const
colors, and this is what I see:
If I rename the class Palette
to Colors
, this is what I see:
But the color other
doesn't show its preview and the color values shown above aren't the values I defined:
So my questions are:
- How can I preview the correct colors in autocomplete?
- Is it possible to use the name
Palette
instead ofColors
to show that?
Note: I'm using Android Studio.
Version info
[✓] Flutter (Channel beta, v1.9.1+hotfix.4, on Linux, locale en_US.UTF-8)
• Flutter version 1.9.1+hotfix.4 at /home/pablo/work/soft/flutter
• Framework revision cc949a8e8b (6 weeks ago), 2019-09-27 15:04:59 -0700
• Engine revision b863200c37
• Dart version 2.5.0
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /home/pablo/work/soft/android-sdk
• Android NDK location not configured (optional; useful for native profiling
support)
• Platform android-29, build-tools 28.0.3
• ANDROID_HOME = /home/pablo/work/soft/android-sdk
• ANDROID_SDK_ROOT = /home/pablo/work/soft/android-sdk
• Java binary at: /home/pablo/work/soft/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Android Studio (version 3.5)
• Android Studio at /home/pablo/work/soft/android-studio
• Flutter plugin version 39.0.3
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build
1.8.0_202-release-1483-b49-5587405)