|
|
|
@ -5,6 +5,8 @@ import androidx.compose.animation.slideInVertically |
|
|
|
import androidx.compose.animation.slideOutVertically |
|
|
|
import androidx.compose.animation.slideOutVertically |
|
|
|
import androidx.compose.foundation.background |
|
|
|
import androidx.compose.foundation.background |
|
|
|
import androidx.compose.foundation.clickable |
|
|
|
import androidx.compose.foundation.clickable |
|
|
|
|
|
|
|
import androidx.compose.foundation.rememberScrollState |
|
|
|
|
|
|
|
import androidx.compose.foundation.verticalScroll |
|
|
|
import androidx.compose.foundation.layout.* |
|
|
|
import androidx.compose.foundation.layout.* |
|
|
|
import androidx.compose.foundation.lazy.LazyColumn |
|
|
|
import androidx.compose.foundation.lazy.LazyColumn |
|
|
|
import androidx.compose.foundation.lazy.items |
|
|
|
import androidx.compose.foundation.lazy.items |
|
|
|
@ -22,6 +24,7 @@ import androidx.compose.ui.text.font.FontFamily |
|
|
|
import androidx.compose.ui.text.font.FontWeight |
|
|
|
import androidx.compose.ui.text.font.FontWeight |
|
|
|
import androidx.compose.ui.text.style.TextOverflow |
|
|
|
import androidx.compose.ui.text.style.TextOverflow |
|
|
|
import androidx.compose.ui.text.style.TextAlign |
|
|
|
import androidx.compose.ui.text.style.TextAlign |
|
|
|
|
|
|
|
import androidx.compose.ui.platform.LocalConfiguration |
|
|
|
import androidx.compose.ui.unit.dp |
|
|
|
import androidx.compose.ui.unit.dp |
|
|
|
import androidx.compose.ui.unit.sp |
|
|
|
import androidx.compose.ui.unit.sp |
|
|
|
import com.utun.chat.data.Channel |
|
|
|
import com.utun.chat.data.Channel |
|
|
|
@ -214,11 +217,12 @@ private fun MemberDetailCard( |
|
|
|
Card( |
|
|
|
Card( |
|
|
|
modifier = Modifier |
|
|
|
modifier = Modifier |
|
|
|
.fillMaxWidth() |
|
|
|
.fillMaxWidth() |
|
|
|
.padding(8.dp), |
|
|
|
.padding(8.dp) |
|
|
|
|
|
|
|
.heightIn(max = LocalConfiguration.current.screenHeightDp.dp / 2), |
|
|
|
shape = RoundedCornerShape(12.dp), |
|
|
|
shape = RoundedCornerShape(12.dp), |
|
|
|
elevation = CardDefaults.cardElevation(defaultElevation = 4.dp) |
|
|
|
elevation = CardDefaults.cardElevation(defaultElevation = 4.dp) |
|
|
|
) { |
|
|
|
) { |
|
|
|
Column(modifier = Modifier.padding(12.dp)) { |
|
|
|
Column(modifier = Modifier.padding(12.dp).verticalScroll(rememberScrollState())) { |
|
|
|
Row(verticalAlignment = Alignment.CenterVertically) { |
|
|
|
Row(verticalAlignment = Alignment.CenterVertically) { |
|
|
|
val dotColor = if (detail.online) Color(0xFF4CAF50) else Color(0xFF9E9E9E) |
|
|
|
val dotColor = if (detail.online) Color(0xFF4CAF50) else Color(0xFF9E9E9E) |
|
|
|
Box( |
|
|
|
Box( |
|
|
|
|