Skip to content

Commit

Permalink
Fix sample to be compatible with example in playground
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgonmic committed Dec 4, 2024
1 parent 873c1ff commit aaf39de
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions cache-maker/src/main/resources/File.kt
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.window.CanvasBasedWindow
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.Button
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.*
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.Alignment
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import androidx.compose.ui.window.ComposeViewport
import kotlinx.browser.document

//sampleStart
@OptIn(ExperimentalComposeUiApi::class)
fun main() {
ComposeViewport(document.body!!) {
App()
}
CanvasBasedWindow { App() }
}

@Composable
Expand Down

0 comments on commit aaf39de

Please sign in to comment.