Skip to content

Commit

Permalink
fix: Fix visibility issue in About Us Screen
Browse files Browse the repository at this point in the history
  • Loading branch information
HekmatullahAmin committed Jan 16, 2025
1 parent 211c5d0 commit bdf03d6
Showing 1 changed file with 23 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
Expand All @@ -35,26 +36,28 @@ internal fun AboutUsScreen(
modifier: Modifier = Modifier,
) {
val context = LocalContext.current
LazyColumn(
modifier = modifier
.fillMaxSize()
.padding(16.dp),
) {
item {
Spacer(modifier = Modifier.height(48.dp))
AboutUsHeader()
}
items(getAboutUsItem(context)) { item ->
MifosItemCard(
modifier = Modifier.padding(bottom = 8.dp),
onClick = { navigateToItem(item) },
) {
item.title?.let {
AboutUsItemCard(
title = it,
subtitle = item.subtitle,
iconUrl = item.iconUrl,
)
Surface {
LazyColumn(
modifier = modifier
.fillMaxSize()
.padding(16.dp),
) {
item {
Spacer(modifier = Modifier.height(48.dp))
AboutUsHeader()
}
items(getAboutUsItem(context)) { item ->
MifosItemCard(
modifier = Modifier.padding(bottom = 8.dp),
onClick = { navigateToItem(item) },
) {
item.title?.let {
AboutUsItemCard(
title = it,
subtitle = item.subtitle,
iconUrl = item.iconUrl,
)
}
}
}
}
Expand Down

0 comments on commit bdf03d6

Please sign in to comment.