-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProfileUserItem.kt
More file actions
56 lines (51 loc) · 1.84 KB
/
Copy pathProfileUserItem.kt
File metadata and controls
56 lines (51 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.sopt.now.compose.Profile
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.ui.Modifier
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.graphics.painter.Painter
import androidx.compose.ui.res.colorResource
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.sopt.now.compose.presentation.Home.Friend
import com.sopt.now.compose.R
@Composable
fun ProfileUserItem(friend: Friend) {
Row(
modifier = Modifier
.fillMaxWidth()
.padding(vertical = 20.dp, horizontal = 10.dp)
.background(color = colorResource(id = R.color.skyblue))
.height(130.dp),
verticalAlignment = Alignment.CenterVertically
) {
val image: Painter = painterResource(id = R.drawable.profile)
Image(
painter = image,
contentDescription = "34기 YB 주효은입니다!",
modifier = Modifier.padding(start = 8.dp)
)
Spacer(modifier = Modifier.width(10.dp))
Text(
text = friend.name,
fontSize = 18.sp,
fontWeight = FontWeight.Bold
)
Spacer(modifier = Modifier.width(10.dp))
Spacer(modifier = Modifier.weight(1f))
Text(
text = friend.selfDescription,
fontSize = 14.sp,
)
}
}