pref: Pad 首页侧栏图标大小
This commit is contained in:
parent
a24d22e3f3
commit
131376f183
|
|
@ -195,7 +195,7 @@ fun NavigationDrawerContent(
|
||||||
.verticalScroll(rememberScrollState()),
|
.verticalScroll(rememberScrollState()),
|
||||||
horizontalAlignment = Alignment.CenterHorizontally,
|
horizontalAlignment = Alignment.CenterHorizontally,
|
||||||
) {
|
) {
|
||||||
navigationItems.forEachIndexed { index, navigationItem ->
|
navigationItems.fastForEachIndexed { index, navigationItem ->
|
||||||
NavigationDrawerItem(
|
NavigationDrawerItem(
|
||||||
selected = index == currentPosition,
|
selected = index == currentPosition,
|
||||||
onClick = {
|
onClick = {
|
||||||
|
|
@ -214,7 +214,7 @@ fun NavigationDrawerContent(
|
||||||
atEnd = index == currentPosition
|
atEnd = index == currentPosition
|
||||||
),
|
),
|
||||||
contentDescription = navigationItem.title(index == currentPosition),
|
contentDescription = navigationItem.title(index == currentPosition),
|
||||||
modifier = Modifier.size(16.dp),
|
modifier = Modifier.size(24.dp),
|
||||||
)
|
)
|
||||||
if (navigationItem.badge) {
|
if (navigationItem.badge) {
|
||||||
Text(
|
Text(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue