form-conductor
form-conductor copied to clipboard
A declarative form validation for Jetpack Compose
I have my custom text field input, like below: `form(RegisterRequestDto::class) { Column( modifier = Modifier .fillMaxWidth() .constrainAs(contentColumn) { top.linkTo(parent.top) bottom.linkTo(button.top, margin = (200).dp) start.linkTo(parent.start) end.linkTo(parent.end) } ) { field(fieldClass =...
within the field formbuilderscope when adding TextField or Row/Column etc. my IDE shows me the following error: @Composable invocations can only happen from the context of a @Composable function
I'm a beginner in android compose. I don't know what went wrong in my code. The button won't enabled during UI test but working during manual testing. ```kotlin rule.onNode(signInButton).assertIsNotEnabled() rule.onNode(emailField).assertIsNotFocused()...
Let's say you have this simple form ```kotlin @Form data class SignUpForm( @Optional @MaxLength(150) val address: String? = null ) ``` In the UI using effect you update the form...
```kotlin import com.boe.itc.b4client.utlis.Required import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable import me.naingaungluu.formconductor.annotations.Form @Form @Serializable data class User( @SerialName("userId") @Required("User ID is required") val userName: String = "", @SerialName("password") @Required("Password is required") val password:...
We'll need to support priority values in form field annotations to specify the order in which they are validated ### IDEA ```kotlin @Form data class FormData( @Priority(2) val emailAddress: String,...
Hey, Noticed in our release variants that proguard is stripping away some key functionalities of the form conductor, like stateless and statefull validation. We are using both the UI and...
I wonder if there is a way to set some initial data to fields in compose variant? I have code like this: ```kt @Composable fun MySuperComponent() { Column { MySuperFetch(...