Skip to content

Conversation

darrenaustin
Copy link
Contributor

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

The previous implementation painted the color of the selected tab indicator with ThemeData.accentColor by default. This PR changes it to the theme's colorScheme.secondary.

Breaking change

This is a breaking change. For apps that need a specific color for the selected tab indicator, you can use the selectedColor parameter on the selector directly:

  TabPageSelector(selectedColor: Colors.purple),

Also updated the tests to verify the new default value for the selected color.

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

@darrenaustin darrenaustin added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels Mar 12, 2021
@darrenaustin darrenaustin requested a review from HansMuller March 12, 2021 06:19
@google-cla google-cla bot added the cla: yes label Mar 12, 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 2820d21 into flutter:master Mar 13, 2021
@darrenaustin darrenaustin deleted the accent_tab_page_selector 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