From 29fb39e07e80e36c61ea5bdc5d5567ef5ddb58cc Mon Sep 17 00:00:00 2001 From: Nikolay Odegov Date: Wed, 19 Feb 2025 18:58:18 +0300 Subject: [PATCH] start work user card --- .../nto/presentation/composable/UserCard.kt | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 presentation/src/main/java/com/nto/presentation/composable/UserCard.kt diff --git a/presentation/src/main/java/com/nto/presentation/composable/UserCard.kt b/presentation/src/main/java/com/nto/presentation/composable/UserCard.kt new file mode 100644 index 0000000..42d5517 --- /dev/null +++ b/presentation/src/main/java/com/nto/presentation/composable/UserCard.kt @@ -0,0 +1,37 @@ +package com.nto.presentation.composable + +import androidx.compose.foundation.background +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier +import androidx.compose.ui.text.style.TextDecoration +import com.nto.data.models.UserDTO +import com.nto.presentation.theme.NTOTheme + +@Composable +fun UserCard(user: UserDTO, modifier: Modifier = Modifier) { + Column( + Modifier + .fillMaxWidth() + .background(NTOTheme.colors.inputFieldBackground) + ) { + Row(Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.SpaceBetween) { + Text(text = "@${user.firstName}") + if (false) { + Text( + text = "разблокировать", + textDecoration = TextDecoration.Underline, + color = NTOTheme.colors.button, + ) + } else { + + } + } + Text(text = "${user.lastName} ${user.firstName} ${user.patronymic}") + Text(text = user.localizedName) + } +} \ No newline at end of file