Skip to content

Commit a35e342

Browse files
committed
feat: scroll
1 parent e5438e7 commit a35e342

File tree

1 file changed

+56
-57
lines changed

1 file changed

+56
-57
lines changed

app/src/main/java/to/bitkit/ui/screens/shop/ShopDiscoverScreen.kt

Lines changed: 56 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -48,70 +48,69 @@ fun ShopDiscoverScreen(
4848
actions = { CloseNavIcon(onClick = onClose) },
4949
)
5050

51-
Row(
52-
horizontalArrangement = Arrangement.spacedBy(16.dp),
53-
modifier = Modifier.padding(horizontal = 16.dp),
51+
LazyColumn(
52+
modifier = Modifier.padding(horizontal = 16.dp)
5453
) {
55-
SuggestionCard(
56-
modifier = Modifier.weight(1f),
57-
gradientColor = Colors.Green,
58-
title = stringResource(R.string.other__shop__discover__gift_cards__title),
59-
description = stringResource(R.string.other__shop__discover__gift_cards__description),
60-
icon = R.drawable.gift,
61-
size = 164,
62-
onClick = {
63-
navigateWebView("gift-cards")
64-
}
65-
)
66-
SuggestionCard(
67-
modifier = Modifier.weight(1f),
68-
gradientColor = Colors.Yellow,
69-
title = stringResource(R.string.other__shop__discover__esims__title),
70-
description = stringResource(R.string.other__shop__discover__esims__description),
71-
icon = R.drawable.globe,
72-
size = 164,
73-
onClick = {
74-
navigateWebView("esims")
54+
item {
55+
Row(
56+
horizontalArrangement = Arrangement.spacedBy(16.dp),
57+
) {
58+
SuggestionCard(
59+
modifier = Modifier.weight(1f),
60+
gradientColor = Colors.Green,
61+
title = stringResource(R.string.other__shop__discover__gift_cards__title),
62+
description = stringResource(R.string.other__shop__discover__gift_cards__description),
63+
icon = R.drawable.gift,
64+
size = 164,
65+
onClick = {
66+
navigateWebView("gift-cards")
67+
}
68+
)
69+
SuggestionCard(
70+
modifier = Modifier.weight(1f),
71+
gradientColor = Colors.Yellow,
72+
title = stringResource(R.string.other__shop__discover__esims__title),
73+
description = stringResource(R.string.other__shop__discover__esims__description),
74+
icon = R.drawable.globe,
75+
size = 164,
76+
onClick = {
77+
navigateWebView("esims")
78+
}
79+
)
7580
}
76-
)
77-
}
7881

79-
VerticalSpacer(16.dp)
82+
VerticalSpacer(16.dp)
8083

81-
82-
Row(
83-
horizontalArrangement = Arrangement.spacedBy(16.dp),
84-
modifier = Modifier.padding(horizontal = 16.dp),
85-
) {
86-
SuggestionCard(
87-
modifier = Modifier.weight(1f),
88-
gradientColor = Colors.Purple,
89-
title = stringResource(R.string.other__shop__discover__refill__title),
90-
description = stringResource(R.string.other__shop__discover__refill__description),
91-
icon = R.drawable.phone,
92-
size = 164,
93-
onClick = {
94-
navigateWebView("refill")
95-
}
96-
)
97-
SuggestionCard(
98-
modifier = Modifier.weight(1f),
99-
gradientColor = Colors.Red,
100-
title = stringResource(R.string.other__shop__discover__travel__title),
101-
description = stringResource(R.string.other__shop__discover__travel__description),
102-
icon = R.drawable.rocket,
103-
size = 164,
104-
onClick = {
105-
navigateWebView("buy/travel")
84+
Row(
85+
horizontalArrangement = Arrangement.spacedBy(16.dp),
86+
) {
87+
SuggestionCard(
88+
modifier = Modifier.weight(1f),
89+
gradientColor = Colors.Purple,
90+
title = stringResource(R.string.other__shop__discover__refill__title),
91+
description = stringResource(R.string.other__shop__discover__refill__description),
92+
icon = R.drawable.phone,
93+
size = 164,
94+
onClick = {
95+
navigateWebView("refill")
96+
}
97+
)
98+
SuggestionCard(
99+
modifier = Modifier.weight(1f),
100+
gradientColor = Colors.Red,
101+
title = stringResource(R.string.other__shop__discover__travel__title),
102+
description = stringResource(R.string.other__shop__discover__travel__description),
103+
icon = R.drawable.rocket,
104+
size = 164,
105+
onClick = {
106+
navigateWebView("buy/travel")
107+
}
108+
)
106109
}
107-
)
108-
}
109110

110-
VerticalSpacer(16.dp)
111+
VerticalSpacer(16.dp)
112+
}
111113

112-
LazyColumn(
113-
modifier = Modifier.padding(horizontal = 16.dp)
114-
) {
115114
items(items = BitrefillCategory.entries.toList(), key = { it.name }) { item ->
116115
Column {
117116
Row(

0 commit comments

Comments
 (0)