-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prepare next navigation implementation
- Loading branch information
Showing
14 changed files
with
345 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,7 @@ sealed class View { | |
|
||
@Serializable | ||
data object Settings : View() | ||
|
||
@Serializable | ||
data object Favorites : View() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...in/kotlin/dev/datlag/aniflow/ui/navigation/screen/initial/favorites/FavoritesComponent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package dev.datlag.aniflow.ui.navigation.screen.initial.favorites | ||
|
||
import dev.datlag.aniflow.ui.navigation.Component | ||
|
||
interface FavoritesComponent : Component { | ||
} |
8 changes: 8 additions & 0 deletions
8
...nMain/kotlin/dev/datlag/aniflow/ui/navigation/screen/initial/favorites/FavoritesScreen.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package dev.datlag.aniflow.ui.navigation.screen.initial.favorites | ||
|
||
import androidx.compose.runtime.Composable | ||
|
||
@Composable | ||
fun FavoritesScreen(component: FavoritesComponent) { | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
...lin/dev/datlag/aniflow/ui/navigation/screen/initial/favorites/FavoritesScreenComponent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package dev.datlag.aniflow.ui.navigation.screen.initial.favorites | ||
|
||
import androidx.compose.runtime.Composable | ||
import com.arkivanov.decompose.ComponentContext | ||
import dev.datlag.aniflow.common.onRender | ||
import org.kodein.di.DI | ||
|
||
class FavoritesScreenComponent( | ||
componentContext: ComponentContext, | ||
override val di: DI | ||
) : FavoritesComponent, ComponentContext by componentContext { | ||
|
||
@Composable | ||
override fun render() { | ||
onRender { | ||
FavoritesScreen(this) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.