Skip to content

Conversation

@HansMuller
Copy link
Contributor

@HansMuller HansMuller commented Feb 25, 2021

Addresses the BottomNavigationBar item from #56918.

When the BottomNavigationBar's type is BottomNavigationBarType.fixed, it now uses the theme's ColorScheme.primary color as the default selectedItemColor for light themes, and ColorScheme.secondary for dark themes.

This PR was tested locally (internal link): cl/359596877

This is a breaking change. The default selectedItemColor for light themes was the theme's primaryColor for light themes and accentColor for dark themes.

Apps that need to configure the selectedItemColor (or the unselectedItemColor) can do so by either setting those parameters in the BottomNavigationBar constructor or with a BottomNavigationBarTheme.

@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Feb 25, 2021
@google-cla google-cla bot added the cla: yes label Feb 25, 2021
Copy link
Contributor

@darrenaustin darrenaustin left a comment

Choose a reason for hiding this comment

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

LGTM.

Do we need a migration guide for this, or will it be part of a bigger issue's guide?

@HansMuller
Copy link
Contributor Author

There will be a migration guide for #56918 that will cover this.

@HansMuller HansMuller merged commit f835839 into flutter:master Feb 25, 2021
@HansMuller HansMuller deleted the remove_accent_color_in_bottom_navigation_bar branch February 25, 2021 23:14
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.

2 participants