Created
January 8, 2021 14:08
-
-
Save tkuenneth/d23c97283fffdadc2336d2c3fce8d995 to your computer and use it in GitHub Desktop.
A short demo deliberately showing bad coding style
This file contains hidden or 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
import androidx.compose.desktop.Window | |
import androidx.compose.foundation.layout.Box | |
import androidx.compose.foundation.layout.fillMaxSize | |
import androidx.compose.material.Button | |
import androidx.compose.material.Text | |
import androidx.compose.ui.Alignment | |
import androidx.compose.ui.Modifier | |
fun main() = Window { | |
Box(contentAlignment = Alignment.Center, | |
modifier = Modifier.fillMaxSize()) { | |
Button(onClick = { | |
while (true) { | |
println("ohoho...") | |
} | |
}) { | |
Text("Hallo") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment