Browse Source

Move IntelliJPlugin to build154.

pull/397/head 0.3.0-build154
Roman Sedaikin 4 years ago
parent
commit
a876a0f870
  1. 2
      examples/intelliJPlugin/build.gradle.kts
  2. 2
      examples/intelliJPlugin/src/main/kotlin/com/jetbrains/compose/ComposeSizeAdjustmentWrapper.kt
  3. 1
      examples/intelliJPlugin/src/main/kotlin/com/jetbrains/compose/widgets/Toggles.kt

2
examples/intelliJPlugin/build.gradle.kts

@ -4,7 +4,7 @@ plugins {
id("org.jetbrains.intellij") version "0.6.5" id("org.jetbrains.intellij") version "0.6.5"
java java
kotlin("jvm") version "1.4.30" kotlin("jvm") version "1.4.30"
id("org.jetbrains.compose") version "0.3.0-build149" id("org.jetbrains.compose") version "0.3.0-build154"
} }
group = "org.example" group = "org.example"

2
examples/intelliJPlugin/src/main/kotlin/com/jetbrains/compose/ComposeSizeAdjustmentWrapper.kt

@ -37,7 +37,7 @@ fun ComposeSizeAdjustmentWrapper(
packed = true packed = true
} }
}, },
measureBlock = { _, _ -> measurePolicy = { _, _ ->
layout(0, 0) {} layout(0, 0) {}
} }
) )

1
examples/intelliJPlugin/src/main/kotlin/com/jetbrains/compose/widgets/Toggles.kt

@ -82,7 +82,6 @@ fun Toggles() {
Slider(value = sliderState2, modifier = Modifier.fillMaxWidth().padding(8.dp), Slider(value = sliderState2, modifier = Modifier.fillMaxWidth().padding(8.dp),
valueRange = 0f..100f, valueRange = 0f..100f,
steps = 5, steps = 5,
thumbColor = MaterialTheme.colors.secondary,
onValueChange = { newValue -> onValueChange = { newValue ->
sliderState2 = newValue sliderState2 = newValue
} }

Loading…
Cancel
Save