Marc
06/01/2023, 5:31 AMMarc
06/01/2023, 5:32 AM@Widget(2)
data class Button(
@Property(1)
val type: ButtonType,
@Property(2)
val content: ButtonScope.() -> Unit
)
object ButtonScope
enum class ButtonType {
Primary,
Secondary,
Tertiary,
}
Looks like when I add the ButtonType it breaks. If I use primitives (ie: a String) everything works as expectedjw
06/01/2023, 11:13 AMMarc
06/01/2023, 5:05 PMMarc
06/01/2023, 5:06 PMjw
06/01/2023, 5:06 PMMarc
06/01/2023, 5:06 PMjw
06/01/2023, 5:07 PMMarc
06/01/2023, 5:09 PM- schema: contains stuff annotated with @widget
- compose: build schema into composables
- api: contains models and enums used by the above so it's imported in both
Marc
06/01/2023, 5:10 PMjw
06/01/2023, 5:11 PMMarc
06/01/2023, 5:15 PMMarc
06/01/2023, 5:16 PMjw
06/01/2023, 7:06 PMMarc
06/01/2023, 7:06 PMMarc
06/01/2023, 7:06 PMjw
06/01/2023, 7:09 PMMarc
06/01/2023, 7:09 PMMarc
06/01/2023, 7:09 PM