We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 670dddc commit d7b826bCopy full SHA for d7b826b
docs/navigation/tab-navigation.md
@@ -46,8 +46,10 @@ You can use it with a [Scaffold](https://developer.android.com/reference/kotlin/
46
setContent {
47
TabNavigator(HomeTab) {
48
Scaffold(
49
- content = {
50
- CurrentTab()
+ content = { padding ->
+ Box(modifier = Modifier.padding(padding)) {
51
+ CurrentTab()
52
+ }
53
},
54
bottomBar = {
55
BottomNavigation {
@@ -74,7 +76,7 @@ private fun RowScope.TabNavigationItem(tab: Tab) {
74
76
BottomNavigationItem(
75
77
selected = tabNavigator.current == tab,
78
onClick = { tabNavigator.current = tab },
- icon = { Icon(painter = tab.icon, contentDescription = tab.title) }
79
+ icon = { Icon(painter = tab.options.icon!!, contentDescription = tab.options.title) }
80
)
81
}
82
```
0 commit comments