@@ -22,7 +22,6 @@ import kotlinx.rpc.transport.ktor.client.rpc
2222import kotlinx.rpc.transport.ktor.client.rpcConfig
2323import ktor_all_platforms_app.composeapp.generated.resources.Res
2424import ktor_all_platforms_app.composeapp.generated.resources.compose_multiplatform
25- import org.jetbrains.compose.resources.ExperimentalResourceApi
2625import org.jetbrains.compose.resources.painterResource
2726
2827expect val DEV_SERVER_HOST : String
@@ -33,7 +32,6 @@ val client by lazy {
3332 }
3433}
3534
36- @OptIn(ExperimentalResourceApi ::class )
3735@Composable
3836fun App () {
3937 var serviceOrNull: UserService ? by remember { mutableStateOf(null ) }
@@ -61,7 +59,10 @@ fun App() {
6159 val news = remember { mutableStateListOf<String >() }
6260
6361 LaunchedEffect (service) {
64- greeting = service.hello(" User from ${getPlatform().name} platform" , UserData (" Berlin" , " Smith" ))
62+ greeting = service.hello(
63+ " User from ${getPlatform().name} platform" ,
64+ UserData (" Berlin" , " Smith" )
65+ )
6566 }
6667
6768 LaunchedEffect (service) {
@@ -91,7 +92,10 @@ fun App() {
9192 }
9293
9394 AnimatedVisibility (showIcon) {
94- Column (Modifier .fillMaxWidth(), horizontalAlignment = Alignment .CenterHorizontally ) {
95+ Column (
96+ Modifier .fillMaxWidth(),
97+ horizontalAlignment = Alignment .CenterHorizontally
98+ ) {
9599 Image (painterResource(Res .drawable.compose_multiplatform), null )
96100 }
97101 }
0 commit comments