Skip to content

Commit

Permalink
Moved SharedContentKey
Browse files Browse the repository at this point in the history
  • Loading branch information
imashnake0 committed Dec 2, 2024
1 parent bc759ee commit 7362748
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ import com.imashnake.animite.core.ui.MediaSmallRow
import com.imashnake.animite.core.ui.ProgressIndicator
import com.imashnake.animite.core.ui.layouts.BannerLayout
import com.imashnake.animite.core.ui.layouts.TranslucentStatusBarLayout
import com.imashnake.animite.dev.SharedContentKey
import com.imashnake.animite.dev.SharedContentKey.Component.Card
import com.imashnake.animite.dev.SharedContentKey.Component.Image
import com.imashnake.animite.dev.SharedContentKey.Component.Page
import com.imashnake.animite.dev.SharedContentKey.Component.Text
import com.imashnake.animite.navigation.SharedContentKey
import com.imashnake.animite.navigation.SharedContentKey.Component.Card
import com.imashnake.animite.navigation.SharedContentKey.Component.Image
import com.imashnake.animite.navigation.SharedContentKey.Component.Page
import com.imashnake.animite.navigation.SharedContentKey.Component.Text
import com.imashnake.animite.features.media.MediaPage
import com.imashnake.animite.core.R as coreR
import com.imashnake.animite.navigation.R as navigationR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ import com.imashnake.animite.core.ui.NestedScrollableContent
import com.imashnake.animite.core.ui.StatsRow
import com.imashnake.animite.core.ui.layouts.BannerLayout
import com.imashnake.animite.core.ui.layouts.TranslucentStatusBarLayout
import com.imashnake.animite.dev.SharedContentKey
import com.imashnake.animite.dev.SharedContentKey.Component.Card
import com.imashnake.animite.dev.SharedContentKey.Component.Image
import com.imashnake.animite.dev.SharedContentKey.Component.Page
import com.imashnake.animite.dev.SharedContentKey.Component.Text
import com.imashnake.animite.navigation.SharedContentKey
import com.imashnake.animite.navigation.SharedContentKey.Component.Card
import com.imashnake.animite.navigation.SharedContentKey.Component.Image
import com.imashnake.animite.navigation.SharedContentKey.Component.Page
import com.imashnake.animite.navigation.SharedContentKey.Component.Text
import kotlinx.serialization.Serializable
import com.imashnake.animite.core.R as coreR

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
package com.imashnake.animite.dev
package com.imashnake.animite.navigation

/**
* Builds a key via [toString] for shared element transitions from [Component] to [Component].
*
* @see [androidx.compose.animation.SharedTransitionScope.rememberSharedContentState]
* @see [androidx.compose.animation.SharedTransitionScope.SharedContentState.key]
*/
data class SharedContentKey(
val id: Int? = null,
val source: String? = null,
Expand Down

0 comments on commit 7362748

Please sign in to comment.