You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FilterChip should have DeletableChipAttributes/trailing to match Material 3 spec. #135595
I'm trying to present several filters that a user can choose from, like shown here in the material 3 spec.
Additionally the user should be able to create more filter with a custom value. These custom filters should be deletable. Such a filter chip with the "X" symbol is shown in the material 3 spec right here.
Note: In the last link the description says: "[...] filter chips may contain a trailing icon to directly remove the chip [...]" but subtext beneath the illustration says: "The X close icon indicates that a user can unselect the filter chip". I'm very sure "unselect" is wrong and should be replaced with "delete", since one can already unselect by tapping on the chip and as the "X" means deleting on other chip types.
Proposal
Add DeletableChipAttributes to FilterChip.
Note: As there is also an example with a "trailing menu item" maybe there should be a trailing attribute instead of only onDeleted etc? But as _RawChip specifically mentions deleteIcon I'm not sure if this would require a refactoring of other chip types as well.
changed the title [-]`FilterChip` should have `DeletableChipAttributes` to match Material 3 spec.[/-][+]`FilterChip` should have `DeletableChipAttributes`/`trailing` to match Material 3 spec.[/+]on Sep 27, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
[-]`FilterChip` should have `DeletableChipAttributes` to match Material 3 spec.[/-][+]`FilterChip` should have `DeletableChipAttributes`/`trailing` to match Material 3 spec.[/+]TahaTesser commentedon Sep 27, 2023
Thanks for the issue! @Jonas-Sander
TahaTesser commentedon Sep 28, 2023
This seems to be an updated

FilterChipspecsI remember there was no trailing button in the

FilterChipspecs. It can be confirmed using the Wayback Machine (March 2023)TahaTesser commentedon Oct 3, 2023
blocked by #135751
Add delete button support to `FilterChip` (#136645)
github-actions commentedon Nov 7, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.