Skip to content

A Basic Color Set for Flutter #173308

@victorsanni

Description

@victorsanni

Document Link

flutter.dev/go/basic-color-set

What problem are you solving?

Currently, defining colors in Flutter out of the box requires using hexadecimal values (e.g., Color(0xffff0000)), which can be cumbersome and reduce code readability. While the Material and Cupertino libraries offer named colors (Colors in Material and CupertinoColors in Cupertino), these are tied to their respective design languages and may not be suitable for developers building applications for a different design language.

The upcoming introduction of dot shorthands in Dart presents an opportunity to simplify color usage significantly (e.g., color: .blue). However, without a set of predefined colors on the Color class itself, developers won't be able to take full advantage of this feature for one of its (potentially) most common use cases.

#172931

Metadata

Metadata

Assignees

No one assigned

    Labels

    📜Issue was posted to Discord. Remove to have the issue reannounced. (For "design doc", "emergency")P3Issues that are less important to the Flutter projectdesign docTracks a design discussion documentf: cupertinoflutter/packages/flutter/cupertino repositoryf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions