Commit 14b3900
authored
Add Material 3 NavigationBar and NavigationBarItem as content emitters (#632)
Add Material 3 `NavigationBar` and `NavigationBarItem` to
`ComposableEmittersList`. These are the Material 3 equivalents of
`NavigationRail` / `NavigationRailItem` (already listed in the Material
2 section) and the Material 2 `BottomNavigation` (already listed in the
Accompanist section). Mirrors the shape of #613, which added the
Material 3 dividers.
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 `NavigationBar {
… }` (no explicit modifier forwarded) currently slip through. Adding the
names to the emitters list closes that gap.1 parent 6aaf4fc commit 14b3900
1 file changed
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
| 308 | + | |
307 | 309 | | |
308 | 310 | | |
309 | 311 | | |
| |||
0 commit comments