Skip to content

Commit cf3b369

Browse files
committed
het ngay 2
1 parent 42733c5 commit cf3b369

36 files changed

+1049
-638
lines changed

.idea/deploymentTargetSelector.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ dependencies {
5454
implementation(libs.serialization)
5555
implementation(libs.androidx.work.runtime.ktx)
5656
implementation(libs.androidx.appcompat)
57+
implementation(libs.androidx.biometric)
5758
testImplementation(libs.junit)
5859
androidTestImplementation(libs.androidx.junit)
5960
androidTestImplementation(libs.androidx.espresso.core)
18.6 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
package com.vund33.components.ui.animations
2+
3+
import androidx.compose.animation.core.animateDpAsState
4+
import androidx.compose.foundation.background
5+
import androidx.compose.foundation.clickable
6+
import androidx.compose.foundation.layout.Box
7+
import androidx.compose.foundation.layout.Column
8+
import androidx.compose.foundation.layout.Spacer
9+
import androidx.compose.foundation.layout.fillMaxSize
10+
import androidx.compose.foundation.layout.fillMaxWidth
11+
import androidx.compose.foundation.layout.height
12+
import androidx.compose.foundation.layout.offset
13+
import androidx.compose.foundation.layout.padding
14+
import androidx.compose.foundation.layout.size
15+
import androidx.compose.foundation.lazy.LazyColumn
16+
import androidx.compose.foundation.lazy.itemsIndexed
17+
import androidx.compose.material3.Card
18+
import androidx.compose.material3.Text
19+
import androidx.compose.runtime.Composable
20+
import androidx.compose.runtime.getValue
21+
import androidx.compose.runtime.mutableStateOf
22+
import androidx.compose.runtime.remember
23+
import androidx.compose.runtime.setValue
24+
import androidx.compose.ui.Modifier
25+
import androidx.compose.ui.graphics.Color
26+
import androidx.compose.ui.layout.onGloballyPositioned
27+
import androidx.compose.ui.layout.positionInRoot
28+
import androidx.compose.ui.platform.LocalDensity
29+
import androidx.compose.ui.text.font.FontWeight
30+
import androidx.compose.ui.unit.IntOffset
31+
import androidx.compose.ui.unit.IntSize
32+
import androidx.compose.ui.unit.dp
33+
import androidx.compose.ui.unit.round
34+
import androidx.compose.ui.unit.sp
35+
import androidx.compose.ui.window.Dialog
36+
import androidx.compose.ui.window.DialogProperties
37+
38+
39+
data class Note(val title: String, val content: String)
40+
41+
@Composable
42+
fun AnimationScreen() {
43+
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
package com.vund33.components.ui.common
2+
3+
import androidx.compose.foundation.BorderStroke
4+
import androidx.compose.foundation.layout.Arrangement
5+
import androidx.compose.foundation.layout.Column
6+
import androidx.compose.foundation.layout.Row
7+
import androidx.compose.foundation.layout.fillMaxWidth
8+
import androidx.compose.foundation.layout.padding
9+
import androidx.compose.foundation.lazy.LazyColumn
10+
import androidx.compose.foundation.lazy.rememberLazyListState
11+
import androidx.compose.material.icons.Icons
12+
import androidx.compose.material.icons.filled.Favorite
13+
import androidx.compose.material3.Card
14+
import androidx.compose.material3.CardDefaults
15+
import androidx.compose.material3.Icon
16+
import androidx.compose.material3.MaterialTheme
17+
import androidx.compose.material3.Text
18+
import androidx.compose.runtime.Composable
19+
import androidx.compose.ui.Modifier
20+
import androidx.compose.ui.text.font.FontWeight
21+
import androidx.compose.ui.unit.dp
22+
23+
@Composable
24+
fun SampleList(
25+
26+
) {
27+
val state = rememberLazyListState()
28+
LazyColumn(
29+
state = state
30+
) {
31+
items(count = 5) {
32+
SampleItem()
33+
}
34+
}
35+
}
36+
37+
@Composable
38+
fun SampleItem(
39+
40+
) {
41+
Card(
42+
modifier = Modifier
43+
.fillMaxWidth(),
44+
colors = CardDefaults.cardColors(
45+
containerColor = MaterialTheme.colorScheme.background,
46+
),
47+
onClick = {}
48+
) {
49+
Row(
50+
modifier = Modifier
51+
.padding(16.dp),
52+
horizontalArrangement = Arrangement.spacedBy(8.dp),
53+
) {
54+
Icon(
55+
imageVector = Icons.Default.Favorite,
56+
contentDescription = "favorite"
57+
)
58+
Text(
59+
text = "item",
60+
color = MaterialTheme.colorScheme.onBackground,
61+
style = MaterialTheme.typography.bodyMedium,
62+
)
63+
}
64+
}
65+
}

0 commit comments

Comments
 (0)