Skip to content

Commit

Permalink
Add animation to show and hide bottom sheet header
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth Agarwal committed Sep 20, 2024
1 parent 5b330cb commit 2514e0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ fun OrgTreeBottomSheetScreen() {

OrgBottomSheet(
title = "Transfer [tracked entity type]",
description = "From [current owner org. unit] to...",
subtitle = "From [current owner org. unit] to...",
orgTreeItems = oneOrgTreeItem,
doneButtonText = "Transfer",
doneButtonIcon = Icons.Outlined.MoveDown,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.hisp.dhis.mobile.ui.designsystem.component

import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.ScrollState
import androidx.compose.foundation.background
import androidx.compose.foundation.gestures.ScrollableState
Expand Down Expand Up @@ -222,7 +223,9 @@ fun BottomSheetShell(
) {
val hasSearch =
searchQuery != null && onSearchQueryChanged != null && onSearch != null
if (showHeader) {
AnimatedVisibility(
visible = showHeader,
) {
BottomSheetHeader(
title = title!!,
subTitle = subtitle,
Expand Down

0 comments on commit 2514e0f

Please sign in to comment.