Skip to content

Extend color picker/preview to support withValues method #6143

Closed

Description

@FMorschel

Is your feature request related to a problem? Please describe.
I'd like to use Flutter Colors.blue.withValues(alpha: 0.5) to set a constant value, but it is impossible since the method needs to be executed.

Describe the solution you'd like
I'd like to be able to use the colors hover to click and change the whole expression to Color.fromRGBO or whatever.

Describe alternatives you've considered
Converting the first part (Colors.blue) and transforming it myself afterwards.

Activity

  1. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Aug 5, 2026
  2. added this to the v3.144.0 milestone on Aug 24, 2026
  3. added
    in editorRelates to code editing or language features
    in lsp/analysis serverSomething to be fixed in the Dart analysis server
    on Aug 24, 2026
  4. modified the milestones: v3.144.0, v3.142.0 on Aug 26, 2026
  5. self-assigned this
    on Aug 26, 2026
  6. changed the title [-]Extend color hover for `withValues` method.[/-] [+]Extend color picker/preview to support `withValues` method[/+] on Aug 26, 2026
  7. DanTup commented on Aug 26, 2026

    @DanTup
    Member

    I tweaked the title here, because I think this request is about the colour preview/picker, and not just the standard editor hover?

  8. DanTup commented on Aug 27, 2026

    @DanTup
    Member

    Fixed by dart-lang/sdk@fce7782, ships in a future SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions