-
Notifications
You must be signed in to change notification settings - Fork 10
New gallery UI implementation #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -30,8 +30,14 @@ dependencyResolutionManagement { | |||
} | |||
} | |||
|
|||
plugins { | |||
id("org.gradle.toolchains.foojay-resolver-convention") version "0.9.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added for hot-reload on jvm/deskop: https://github.com/JetBrains/compose-hot-reload
...gradle-plugin/src/main/kotlin/org/jetbrains/compose/storytale/plugin/JsMultiplatformTasks.kt
Outdated
Show resolved
Hide resolved
...ery/src/commonMain/kotlin/org/jetbrains/compose/storytale/gallery/material3/FullStoryView.kt
Outdated
Show resolved
Hide resolved
… state in Story code
@@ -0,0 +1,122 @@ | |||
import org.jetbrains.compose.reload.ComposeHotRun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a small question related to this module. We have the example
one, which contains an example of the demo. Was it intentional to create a new one instead of re-using the example
?
operator fun provideDelegate(thisRef: Any?, property: KProperty<*>) = also { | ||
story.nameToParameterMapping.getOrPut(property.name) { | ||
StoryParameter(property.name, type) { remember { mutableStateOf(defaultValue) } } | ||
StoryParameter(property.name, type) { mutableStateOf(defaultValue) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to know (just for my education with Compose). Why don't we need remember
here?
Highlights:
./gradlew :gallery-demo:wasmJsBrowserDevelopmentRun