Refactor MainActivity to use MainScreen with scaffold and navigation setup

This commit is contained in:
2025-11-06 10:48:06 +01:00
parent 95016e8514
commit da87e6cb22
3 changed files with 40 additions and 14 deletions

View File

@@ -36,20 +36,7 @@ class MainActivity : ComponentActivity() {
enableEdgeToEdge()
setContent {
StrassenSchadenPro2Theme {
//var count = 0
var count by remember { mutableStateOf(0) }
Column(modifier = Modifier.fillMaxSize(),
verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally) {
Text(text= count.toString())
Button(onClick = {
count++
Log.d("MainActivity", "Button clicked $count")
}) {
Text("Click me")
}
}
MainScreen()
}
}
}