perf: CategoryPage HorizontalDivider

This commit is contained in:
lisonge 2024-03-08 21:33:38 +08:00
parent 17af46e1af
commit 99bb366272

View File

@ -20,6 +20,7 @@ import androidx.compose.material.icons.filled.MoreVert
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Card
import androidx.compose.material3.FloatingActionButton
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.LocalContentColor
@ -165,6 +166,9 @@ fun CategoryPage(subsItemId: Long) {
)
}
}
if (categories.lastOrNull() !== category) {
HorizontalDivider()
}
}
item {
Spacer(modifier = Modifier.height(40.dp))