Add extention for binding error on TextInputLayout. Android platform
ExNDY opened this issue · comments
Kolchurin Konstantin commented
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 } }