mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 16:27:06 +05:30
common: remove unused bits
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
7306cd3294
commit
7864652610
4 changed files with 0 additions and 30 deletions
|
@ -1,5 +0,0 @@
|
|||
package dev.msfjarvis.claw.common
|
||||
|
||||
actual fun getPlatformName(): String {
|
||||
return "Android"
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
package dev.msfjarvis.claw.common
|
||||
|
||||
import androidx.compose.material.Button
|
||||
import androidx.compose.material.MaterialTheme
|
||||
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
|
||||
|
||||
@Composable
|
||||
fun App() {
|
||||
var text by remember { mutableStateOf("Hello, World!") }
|
||||
|
||||
MaterialTheme { Button(onClick = { text = "Hello, ${getPlatformName()}" }) { Text(text) } }
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
package dev.msfjarvis.claw.common
|
||||
|
||||
expect fun getPlatformName(): String
|
|
@ -1,5 +0,0 @@
|
|||
package dev.msfjarvis.claw.common
|
||||
|
||||
actual fun getPlatformName(): String {
|
||||
return "Desktop"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue