Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Gradle, Kotlin, and Compose versions #2

Merged
merged 7 commits into from Aug 14, 2022

Conversation

espertus
Copy link

Thanks for making your code available. I'm planning to use it in a class I'll be teaching.

I decided to update to a recent version of Compose, which required updating Gradle and Kotlin versions. The biggest headache was the change from androidx.compose.desktop.Window to androidx.compose.ui.window.Window. I'm new to Compose, so my changes might not be the best.

gradle/wrapper/gradle-wrapper.properties Show resolved Hide resolved
src/main/kotlin/com/arkivanov/composnake/DefaultGame.kt Outdated Show resolved Hide resolved
src/main/kotlin/com/arkivanov/composnake/Main.kt Outdated Show resolved Hide resolved
src/main/kotlin/com/arkivanov/composnake/Main.kt Outdated Show resolved Hide resolved
src/main/kotlin/com/arkivanov/composnake/Main.kt Outdated Show resolved Hide resolved
@@ -79,9 +91,13 @@ private fun Board(board: Board) {
return
}

Column {
Column(
modifier = Modifier.padding(COL_PADDING)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need paddings now? Could you please attach a screenshot?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With padding:
image

Without padding:
image

I see that I should make it more to match your version. Here it is with 32.dp padding:

image

I notice it displays the title less prominently (at least on my Windows 11 desktop).

src/main/kotlin/com/arkivanov/composnake/Main.kt Outdated Show resolved Hide resolved
@arkivanov arkivanov merged commit c9b0da6 into arkivanov:main Aug 14, 2022
@arkivanov
Copy link
Owner

Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants