Commit c1ce4e5
authored
Fix IconButton.color overrided by IconButtomTheme (flutter#174515)
## Description
This PR fixes IconButton icon color resolution.
## Before
The IconButton.color property does not take precedence over the ambient
`IconButtonTheme`
## After
The IconButton.color property overrides the ambient `IconButtonTheme`.
## Related Issue
Fixes [SnackBar closeIconColor does not respect widget
override](flutter#174472)
Fixes [IconButton.color is overidden by
IconButtonTheme](flutter#174511)
## Tests
Adds 1 test.1 parent cc0b047 commit c1ce4e5
File tree
2 files changed
+34
-1
lines changed- packages/flutter
- lib/src/material
- test/material
2 files changed
+34
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
748 | | - | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
749 | 751 | | |
750 | 752 | | |
751 | 753 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2761 | 2761 | | |
2762 | 2762 | | |
2763 | 2763 | | |
| 2764 | + | |
| 2765 | + | |
| 2766 | + | |
| 2767 | + | |
| 2768 | + | |
| 2769 | + | |
| 2770 | + | |
| 2771 | + | |
| 2772 | + | |
| 2773 | + | |
| 2774 | + | |
| 2775 | + | |
| 2776 | + | |
| 2777 | + | |
| 2778 | + | |
| 2779 | + | |
| 2780 | + | |
| 2781 | + | |
| 2782 | + | |
| 2783 | + | |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
| 2787 | + | |
| 2788 | + | |
| 2789 | + | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
2764 | 2795 | | |
2765 | 2796 | | |
2766 | 2797 | | |
| |||
0 commit comments