Support for "Overlay" visibility in ChildStack for Shared Transitions
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- kotlin
- Domain
- mobile-dev
Research direction
Start by reading the ChildStack shared-element transition and predictive-back visibility handling described in the issue. Compare how multiple items remain composed during the gesture with the settled state for transparent or overlay components. Done means the underlying child remains visible behind the active child without breaking the shared transition.
Written by the indexing model from the issue text.
Description
When navigating between two components (e.g., GalleryComponent -> PhotoComponent) using a ChildStack with a shared element transition, the "underlying" component (GalleryComponent) is removed from the composition as soon as the transition completes.
This becomes problematic when the top-level component (PhotoComponent) has a transparent or semi-transparent background (e.g., a "hero" image view with a background alpha that the user can drag or swipe away). Currently, once the transition settles, the background becomes empty/black because the previous stack item is no longer present in the ChildStack's active state.
Expected Behavior
There should be a mechanism to keep the previous component in the composition when the current component is marked as an "overlay" or "transparent," allowing it to remain visible behind the active child.
Possible Solutions
- I tried to isolate
PhotoComponentinto a standaloneChildSlotand place both theChildStackandChildSlotinside aBox. While this successfully achieves the "overlap" effect, it breaks the shared element transition because the components reside in differentAnimatedVisibilityScopecontexts. - Since the predictive back gesture already handles this visibility perfectly during the drag (rendering multiple items at once), could this logic be extended to the settled state for specific components?
- Dominant language
- Kotlin
- Stars
- 2.9k
- Forks
- 111
- Avg merge
- 11h 28m
- Merged PRs (30d)
- 26
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from arkivanov/Decompose
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
withWebHistory saves state only in onbeforeunload, which iOS Safari does not firePossibly taken @sahuadarsh0 claimed this today. Open
Difficulty 3/5 1-2 days Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 30/100
Maintainers usually reply within 1 day
-
Add key parameter to defaultComponentContext functionMay be free again @arkivanov claimed this 246 days ago, and no pull request is open. Openenhancement
arkivanov/Decompose#989 · 1 reaction · 1 assignee ·
Maintainers usually reply within 1 day
All issues in arkivanov/Decompose
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 2 days
-
help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
DojoCodingLabs/hermit#23 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
signalapp/Signal-Android#15148 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 78/100
PranshulGG/WeatherMaster#1266 · 3 comments ·
Maintainers usually reply within 1 day
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
getsotto/sotto-authenticator#68 ·
Maintainers usually reply within 1 day