Skip to content

Commit

Permalink
Added dividers
Browse files Browse the repository at this point in the history
  • Loading branch information
nbradbury committed Sep 26, 2024
1 parent defb4b1 commit 6feee8b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Close
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
Expand Down Expand Up @@ -74,14 +75,15 @@ fun UserListScreen(
private fun UserList(users: List<UserWithEditContext>) {
for (user in users) {
UserRow(user)
HorizontalDivider(thickness = 1.dp, modifier = Modifier.padding(start = 80.dp))
}
}

@Composable
fun UserRow(user: UserWithEditContext) {
Row(
modifier = Modifier
.padding(horizontal = 16.dp, vertical = 12.dp)
.padding(all = 16.dp)
.fillMaxWidth()
) {
Column(
Expand Down

0 comments on commit 6feee8b

Please sign in to comment.