NTP-48744 | Vedant Aggarwal | Order History Screen Shadow fix (#16215)

This commit is contained in:
vedant aggarwal
2025-05-20 15:31:12 +05:30
committed by GitHub
parent 89515e188a
commit 17e560acbe

View File

@@ -338,6 +338,14 @@ fun OrderHistoryScreenContent(
}
}
val shouldShowHeaderShadow by remember {
if (isFromHomeBottomBar) {
derivedStateOf { orderHistoryItemsListState.firstVisibleItemScrollOffset > 50 }
} else {
derivedStateOf { !isHeaderTitleVisible }
}
}
val onFilterTagsApplyAllClicked = {
orderHistoryViewModel.onFilterTagsApplyClicked()
dismissBottomSheet()
@@ -493,7 +501,9 @@ fun OrderHistoryScreenContent(
stickyHeader {
NaviPayCard(
modifier =
Modifier.fillMaxWidth().conditional(!isHeaderTitleVisible) {
Modifier.fillMaxWidth().conditional(
shouldShowHeaderShadow
) {
shadow(
elevation = 32.dp,
shape = RoundedCornerShape(0.dp),