-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Kotlin to 2.0.0, Decompose to 3.1.0 and other dependencies
- Loading branch information
Showing
7 changed files
with
33 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ venv | |
/dist | ||
/mkdocs_material.egg-info | ||
.vscode | ||
.kotlin |
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
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
21 changes: 21 additions & 0 deletions
21
compose-ui/src/commonMain/kotlin/com/example/myapplication/FailingComposable.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,21 @@ | ||
package com.example.myapplication | ||
|
||
import androidx.compose.foundation.ExperimentalFoundationApi | ||
import androidx.compose.material.Text | ||
import androidx.compose.runtime.Composable | ||
import com.arkivanov.decompose.ExperimentalDecomposeApi | ||
import com.arkivanov.decompose.extensions.compose.pages.Pages | ||
import com.arkivanov.decompose.extensions.compose.pages.PagesScrollAnimation | ||
import com.arkivanov.decompose.router.pages.ChildPages | ||
|
||
@OptIn(ExperimentalFoundationApi::class, ExperimentalDecomposeApi::class) | ||
@Composable | ||
fun FailingComposable() { | ||
Pages( | ||
pages = ChildPages(items = emptyList(), selectedIndex = 0), | ||
onPageSelected = {}, | ||
scrollAnimation = PagesScrollAnimation.Default, // Commenting this line fixes the error | ||
) { index, _ -> | ||
Text("Item: $index") | ||
} | ||
} |
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