Skip to content

Commit

Permalink
Make button smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
adriantache committed Jul 3, 2024
1 parent 3b1b6bd commit ef18a27
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion composeApp/src/commonMain/kotlin/App.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.requiredSize
import androidx.compose.material.Button
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import coil3.ImageLoader
import coil3.annotation.ExperimentalCoilApi
import coil3.compose.setSingletonImageLoaderFactory
Expand Down Expand Up @@ -39,7 +41,9 @@ fun App() {
if (!useNewApp) {
MainScreen()

Button(onClick = { useNewApp = true }) {
Button(
modifier = Modifier.requiredSize(100.dp),
onClick = { useNewApp = true }) {
Text("Use new app")
}
} else {
Expand Down

0 comments on commit ef18a27

Please sign in to comment.