android-studiointellij-ideadartflutterandroid-studio-3.0

Android Studio where is color picker for Flutter plugin


In Android Studio, we have color picker when developing in Java/Kotlin (natively) like this.

enter image description here

But while developing for Flutter, I can't see any options to pick my own color. Is there some plugin required to do that?


Solution

  • The color picker is not clickable in Android Studio running Flutter( Dart code), see picture below. But i found a work around using the Color class and manually opening color picker. Then pick a color and copy/paste it like this:

    Color class

    Here is how i do it:

    1. Double tap shift to run search

    Search icon

    2. Type Color or Picker Search list

    3. Open Color Picker from the search list

    Color Picker

    4. Copy/paste the HEX color code into your color class.

    Expert tip:

    Add color picker to a keyboard shortcut. You can find the settings for Keymap, under File > Settings > Keymap enter image description here