Skip to content

Color preview not working properly. #2606

Closed
@brc-dd

Description

@brc-dd

I am experiencing some issues with the preview boxes showing colors left to any Color object.

What I am getting:

image
image

What I should be getting:

image

Clearly the issue is because whatever code you guys are using to generate color in that square box is not checking if the Color object is there in comment. It is simply finding all Color objects as if in plaintext and mapping them to line numbers; the color which is found last in a line is retained as the key and rest are discarded.

VS Code Setup Information:

Version: 1.47.0-insider (user setup)
Commit: 376d9d9d785ccca128fdbb16f001446d0ad64d32
OS: Windows_NT x64 10.0.19041

Extension Versions:

dart-code.dart-code : v3.12.1
dart-code.flutter : v3.12.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin flutterRelates to running Flutter appsis bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions