Skip to content
This repository was archived by the owner on Jun 12, 2026. It is now read-only.

Add shared transition search demo - #13

Merged
RedSTARO merged 7 commits into
masterfrom
codex/create-example-search-page-demo
Jan 30, 2026
Merged

Add shared transition search demo#13
RedSTARO merged 7 commits into
masterfrom
codex/create-example-search-page-demo

Conversation

@RedSTARO

Copy link
Copy Markdown
Owner

Motivation

  • Add a reusable cross-screen shared element (shared bounds) demo to validate SearchBox → Search page transitions using Compose's official shared transition APIs.
  • Prepare the app to adopt SharedTransitionLayout as the global host for element-level transitions across Nav destinations.

Description

  • Wrap the main NavHost in SharedTransitionLayout and expose the SharedTransitionScope/AnimatedVisibilityScope to composables for shared-bounds use.
  • Implement a reusable SharedKeys object and convert the home SearchBox into a shared-bounds card that navigates to the demo search route using rememberSharedContentState and sharedBounds.
  • Add SearchDemoPage that consumes the same shared key and displays a TextField to demonstrate the cross-screen shared bounds interpolation.
  • Add the Compose animation library to the version catalog (gradle/libs.versions.toml) and the app module (app/build.gradle.kts) to enable the shared transition APIs.

Testing

  • No automated tests were run for this change.
  • Changes were validated by local code edits and compilation dependency updates (no build executed in CI as part of this PR).

Codex Task

@RedSTARO
RedSTARO merged commit 2398e2d into master Jan 30, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant