Skip to content

[packages] Color.value is deprecated #159739

@stuartmorgan-g

Description

@stuartmorgan-g
   info • [...] • 'value' is deprecated and shouldn't be used. Use
          component accessors like .r or .g, or toARGB32 for an explicit conversion. Try replacing the use of the
          deprecated member with the replacement. • deprecated_member_use

It's mostly used in plugins where we are serializing colors for method channels. In those cases, it would probably be best to make a PlatformColor class and get each component, rather than relying on matching bit operations on both sides as we currently do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.p: deprecated apiUse of a deprecated Dart API in flutter/packages that needs to be updatedp: flutter_svgThe Flutter SVG drawing packagesp: mapsGoogle Maps pluginp: vector_graphicsThe vector_graphics package setp: webviewThe WebView pluginpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions