Closed ExNDY closed 1 year ago
Please add binding for formfield error, for my solution im use this
fun TextInputLayout.bindError( lifecycleOwner: LifecycleOwner, flow: CStateFlow<StringDesc?>, ): DisposableHandle { return flow.bind(lifecycleOwner) { this.error = it?.toString(this.context) this.isErrorEnabled = it != null } }
Please add binding for formfield error, for my solution im use this
fun TextInputLayout.bindError( lifecycleOwner: LifecycleOwner, flow: CStateFlow<StringDesc?>, ): DisposableHandle { return flow.bind(lifecycleOwner) { this.error = it?.toString(this.context) this.isErrorEnabled = it != null } }