@@ -10,56 +10,42 @@ import com.vanced.store.ui.theme.VSTheme
10
10
11
11
@Composable
12
12
fun BrowseAppCard (
13
+ onClick : (() -> Unit )? ,
13
14
icon : @Composable () -> Unit ,
14
15
title : @Composable () -> Unit ,
15
16
description : @Composable () -> Unit ,
16
17
labels : @Composable () -> Unit ,
17
- actions : @Composable () -> Unit ,
18
18
modifier : Modifier = Modifier ,
19
19
) {
20
20
VSElevatedCard (
21
+ onClick = onClick,
21
22
modifier = modifier,
22
23
shape = VSTheme .shapes.large
23
24
) {
24
- Box (
25
- modifier = Modifier
26
- .fillMaxSize()
27
- .padding(VSTheme .spacing.extraLarge)
28
- ) {
29
- Row (
30
- modifier = Modifier .align(Alignment .TopEnd ),
31
- horizontalArrangement = Arrangement .spacedBy(VSTheme .spacing.extraSmall),
32
- verticalAlignment = Alignment .CenterVertically
25
+ Column {
26
+ Box (
27
+ modifier = Modifier
28
+ .clip(VSTheme .shapes.medium)
29
+ .fillMaxWidth()
30
+ .aspectRatio(1f / 1f )
33
31
) {
34
- labels ()
32
+ icon ()
35
33
}
36
- Row (
37
- modifier = Modifier
38
- .fillMaxSize()
39
- .align(Alignment .Center ),
40
- horizontalArrangement = Arrangement .spacedBy(VSTheme .spacing.large)
34
+ Column (
35
+ modifier = Modifier .fillMaxWidth().padding(VSTheme .spacing.medium),
36
+ verticalArrangement = Arrangement .spacedBy(VSTheme .spacing.small)
41
37
) {
42
- Box (modifier = Modifier .clip(VSTheme .shapes.medium)) {
43
- icon()
38
+ ProvideTextStyle (VSTheme .typography.titleMedium) {
39
+ title()
40
+ }
41
+ ProvideTextStyle (VSTheme .typography.bodySmall) {
42
+ description()
44
43
}
45
- Column (
46
- modifier = Modifier
47
- .fillMaxWidth()
48
- .padding(top = VSTheme .spacing.extraSmall),
49
- verticalArrangement = Arrangement .spacedBy(VSTheme .spacing.medium)
44
+ Row (
45
+ modifier = Modifier .align(Alignment .End ),
46
+ horizontalArrangement = Arrangement .spacedBy(VSTheme .spacing.extraSmall)
50
47
) {
51
- ProvideTextStyle (VSTheme .typography.titleMedium) {
52
- title()
53
- }
54
- ProvideTextStyle (VSTheme .typography.bodySmall) {
55
- description()
56
- }
57
- Row (
58
- modifier = Modifier .align(Alignment .End ),
59
- horizontalArrangement = Arrangement .spacedBy(VSTheme .spacing.small)
60
- ) {
61
- actions()
62
- }
48
+ labels()
63
49
}
64
50
}
65
51
}
0 commit comments