Skip to content

Profile Screen -> Manual Collapse for Nested Scroll Banner - #737

Merged
imashnake0 merged 1 commit into
mainfrom
manual-collapse-question-mark
Jul 28, 2026
Merged

Profile Screen -> Manual Collapse for Nested Scroll Banner#737
imashnake0 merged 1 commit into
mainfrom
manual-collapse-question-mark

Conversation

@imashnake0

Copy link
Copy Markdown
Owner

Added a toggle to manually show/hide the banner forever. There are now two states:

  • Banner is shown with nested scroll as before.
  • Banner is hidden forever (use the same button to back to ^).

Summary of changes:

  1. Add toggle button.
  2. Animate values and somehow make scroll smoother.
  3. Show/hide banner.

Tested changes:

ya

@imashnake0 imashnake0 self-assigned this Jul 28, 2026
@imashnake0 imashnake0 added the enhancement Enhancement label Jul 28, 2026
)
)
.graphicsLayer { alpha = 1.5f * ratio - 0.5f },
.graphicsLayer { alpha = 1.5f * animRatio - 0.5f },
)
)
.graphicsLayer { alpha = 1.5f * ratio - 0.5f },
.graphicsLayer { alpha = 1.5f * animRatio - 0.5f },
}

@Composable
fun BannerHeightToggle(
modifier: Modifier = Modifier
) {
val haptic = LocalHapticFeedback.current
val angle by animateFloatAsState(if (isExpanded) 0f else 180f)
@imashnake0
imashnake0 marked this pull request as ready for review July 28, 2026 07:30
@imashnake0
imashnake0 merged commit 386e788 into main Jul 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants