-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContacsPage.txt
93 lines (92 loc) · 3.57 KB
/
ContacsPage.txt
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
@Composable
fun Contacts(modifier: Modifier = Modifier) {
Box(
modifier = modifier
.requiredWidth(width = 360.dp)
.requiredHeight(height = 838.dp)
.background(brush = Brush.linearGradient(
0f to Color(0xffca263a),
1f to Color.Black,
start = Offset(180f, 0f),
end = Offset(180f, 838f)))
) {
Text(
text = "Contacts",
color = Color(0xff5e0707),
style = TextStyle(
fontSize = 30.sp,
fontWeight = FontWeight.Bold),
modifier = Modifier
.align(alignment = Alignment.TopStart)
.offset(x = 108.dp,
y = 46.dp))
OutlinedTextField(
value = "",
onValueChange = {},
label = {
Text(
text = "Name",
color = Color(0xff340303).copy(alpha = 0.78f),
style = TextStyle(
fontSize = 15.sp),
modifier = Modifier
.requiredHeight(height = 18.dp))
},
modifier = Modifier
.align(alignment = Alignment.TopStart)
.offset(x = 27.dp,
y = 232.dp)
.requiredWidth(width = 307.dp)
.requiredHeight(height = 51.dp))
OutlinedTextField(
value = "",
onValueChange = {},
label = {
Text(
text = "Number",
color = Color(0xff340303).copy(alpha = 0.75f),
style = TextStyle(
fontSize = 15.sp),
modifier = Modifier
.requiredHeight(height = 18.dp))
},
modifier = Modifier
.align(alignment = Alignment.TopStart)
.offset(x = 27.dp,
y = 323.dp)
.requiredWidth(width = 307.dp)
.requiredHeight(height = 48.dp))
Box(
modifier = Modifier
.align(alignment = Alignment.TopStart)
.offset(x = 84.dp,
y = 419.dp)
.requiredWidth(width = 193.dp)
.requiredHeight(height = 50.dp)
) {
Button(
onClick = { },
shape = RoundedCornerShape(15.dp),
colors = ButtonDefaults.buttonColors(containerColor = Color(0xffb11212).copy(alpha = 0.97f)),
modifier = Modifier
.requiredWidth(width = 193.dp)
.requiredHeight(height = 50.dp)){ }
Text(
text = "Add",
color = Color(0xff310202),
style = TextStyle(
fontSize = 15.sp,
fontWeight = FontWeight.Bold),
modifier = Modifier
.align(alignment = Alignment.TopStart)
.offset(x = 80.97900390625.dp,
y = 16.dp)
.requiredWidth(width = 63.dp))
}
}
}
@Preview(widthDp = 360, heightDp = 838)
@Composable
private fun ContactsPreview() {
Contacts(Modifier)
}