Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add animation to show and hide bottom sheet header
Browse files Browse the repository at this point in the history
Siddharth Agarwal authored and andresmr committed Sep 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 95183be commit 396dc8c
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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,
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
@@ -222,7 +223,9 @@ fun BottomSheetShell(
) {
val hasSearch =
searchQuery != null && onSearchQueryChanged != null && onSearch != null
if (showHeader) {
AnimatedVisibility(
visible = showHeader,
) {
BottomSheetHeader(
title = title!!,
subTitle = subtitle,

0 comments on commit 396dc8c

Please sign in to comment.