Skip to content

Conversation

darrenaustin
Copy link
Contributor

This PR removes the RefreshIndicator widget's accentColor dependency per #56918.

The RefreshIndicator widget's color property used the ThemeData.accentColor by default. This PR updates it to use the ColorScheme.primary instead.

Breaking change

This is a breaking change. For apps that need a specific color for their RefreshIndicators they can just pass it into the constructor for the widget:

  RefreshIndicator(
    color: Colors.yellow,
     ...
  )

A new test was added to check verify the default RefreshIndicator color is now ColorScheme.primary.

This PR was tested against internal Google apps in cl/360775206.

@darrenaustin darrenaustin added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels Mar 11, 2021
@darrenaustin darrenaustin requested a review from HansMuller March 11, 2021 07:08
@google-cla google-cla bot added the cla: yes label Mar 11, 2021
Copy link
Contributor

@HansMuller HansMuller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fluttergithubbot fluttergithubbot merged commit aec2985 into flutter:master Mar 11, 2021
@darrenaustin darrenaustin deleted the accent_refreshindicator branch April 26, 2021 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants