Commit 26a3031
authored
Add Material 3 chips as content emitters (#633)
Add the following Material 3 chips to `ComposableEmittersList`:
`AssistChip`, `ElevatedAssistChip`, `FilterChip`, `ElevatedFilterChip`,
`InputChip`, `SuggestionChip`, `ElevatedSuggestionChip`. Mirrors the
shape of #613 (Material 3 dividers) and #632 (Material 3 `NavigationBar`
/ `NavigationBarItem`).
Without these entries, `MultipleContentEmitters` and
`ModifierNotUsedAtRoot` rely on the `containsComposablesWithModifiers()`
fallback in `KtCallExpression.emitsContent`, which only matches when the
call site passes a `modifier` argument. Calls like `AssistChip { ... }`
(no explicit modifier forwarded) currently slip through. Adding the
names to the emitters list closes that gap.1 parent 14b3900 commit 26a3031
1 file changed
Lines changed: 7 additions & 0 deletions
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
301 | 302 | | |
302 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
303 | 307 | | |
| 308 | + | |
304 | 309 | | |
| 310 | + | |
305 | 311 | | |
306 | 312 | | |
307 | 313 | | |
308 | 314 | | |
309 | 315 | | |
310 | 316 | | |
311 | 317 | | |
| 318 | + | |
312 | 319 | | |
313 | 320 | | |
314 | 321 | | |
| |||
0 commit comments