David Herman

Results 253 comments of David Herman

Definitely possible using a component variant but still we should add an `enabled = ...` parameter to `Button` like Compose for Android does.

https://blog.jetbrains.com/ktor/2022/04/11/ktor-2-0-released/ just released

Can you give me a concrete use case of what you're trying to accomplish from your site's user's point of view? (Want to make sure dynamic routes or query parameters...

It is true that dynamic routes are excluded from exports while parameterized pages wouldn't be. By the way, it's less convenient but you can also declare multiple Page annotations and...

Here's some code that can used as a starting point. Thanks @DVDAndroid for the initial work! > https://github.com/DVDAndroid/kobweb/tree/dvd/ksp

More: ``` You can see in the files here for example that basically all of the modifier extension functions are associated with a class that overrides the hashCode https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/ which...

Actually, reopening. As pointed out, this probably isn't fixed yet (since Style and Attr Modifier classes themselves don't have equals / hashcode implementations) Concretely, I need to do this: ```...

Here's a simple repro page to showcase the issue: ``` package helloworld.pages import androidx.compose.runtime.* import com.varabyte.kobweb.compose.foundation.layout.Column import com.varabyte.kobweb.compose.foundation.layout.Row import com.varabyte.kobweb.compose.ui.Modifier import com.varabyte.kobweb.compose.ui.asAttributesBuilder import com.varabyte.kobweb.compose.ui.modifiers.backgroundColor import com.varabyte.kobweb.compose.ui.modifiers.fontSize import com.varabyte.kobweb.compose.ui.modifiers.padding import com.varabyte.kobweb.core.Page...

This may be more complicated than I thought, as it will require native executables built per platform (e.g. windows, mac, linux). We should still do it eventually probably but since...