这是indexloc提供的服务,不要输入任何密码
Skip to content

AccentColor deprecation needs link to migration guide #84748

@timsneath

Description

@timsneath

We have a nice migration guide for the AccentColor change, but it's not linked in the API itself:
https://flutter.dev/docs/release/breaking-changes/theme-data-accent-properties#migration-guide
image

In this case, we include a brief warning ("'accentColor' is deprecated and shouldn't be used. Use colorScheme.secondary instead. This feature was deprecated after v2.3.0-0.1.pre..") but there's no help for a user to know how to use colorScheme, and it turns out to be pretty intricate.

I had to go off and Google to find the solution, and I think it could and should be a lot easier for us to walk users through this kind of breakage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    d: api docsIssues with https://api.flutter.dev/f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.waiting for PR to land (fixed)A fix is in flight

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions