mirror of
https://github.com/bitwarden/android.git
synced 2026-04-30 12:59:02 -05:00
Refactor ItemHeader to use LazyColumn for overflow locations
This commit is contained in:
committed by
David Perez
parent
6953d5e132
commit
78d5965271
@@ -15,6 +15,7 @@ import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
import androidx.compose.foundation.lazy.items
|
||||
import androidx.compose.material3.HorizontalDivider
|
||||
import androidx.compose.material3.Icon
|
||||
import androidx.compose.material3.Text
|
||||
@@ -157,9 +158,8 @@ private fun ExpandingItemLocationContent(
|
||||
exit = fadeOut() + slideOutVertically(),
|
||||
modifier = Modifier.clipToBounds(),
|
||||
) {
|
||||
Column {
|
||||
overflowLocations
|
||||
.forEach {
|
||||
LazyColumn {
|
||||
items(overflowLocations) {
|
||||
ItemLocationListItem(
|
||||
vectorPainter = rememberVectorPainter(it.icon),
|
||||
text = it.name,
|
||||
|
||||
Reference in New Issue
Block a user