NTP-48744 | Vedant Aggarwal | Order History Screen Shadow fix (#16215)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user