Skip to content

Remove support for configuring AppBar background color with ThemeData.primaryColor #70645

@HansMuller

Description

@HansMuller

ThemeData.primaryColor is currently the default background color for AppBar. Apps should configure the default background color for AppBar's with AppBar.color, AppBarTheme.backgroundColor, or the theme's ColorScheme.primaryColor.

Support for ThemeData.primaryColor is being phased out because it's redundant with ColorScheme.primary and not as clear as AppBar.color or AppBarTheme.backgroundColor.

Support for ThemeData.primaryColor, when it's not the same as the ColorScheme's primary, has been temporarily enabled for AppBar in ... until old applications have had a chance to update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions