Replies: 1 comment
-
Could you share the full error message? I don't see anything wrong with your code at a first glance. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ive tried many different methods of input and different imports
import androidx.compose.material.MaterialTheme
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.style.TextForegroundStyle.Unspecified.color
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
@composable
@Preview
fun App() {
var text by remember { mutableStateOf("Hello, World!") }
}
fun main() = application {
Window(onCloseRequest = ::exitApplication) {
App()
}
}
Beta Was this translation helpful? Give feedback.
All reactions