skip to Main Content

Flutter – how to validate form when textfield is created as separate widget

return Form( key: _formKey, child: SingleChildScrollView( child: Column( mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: [ MandatoryFieldWidget("Login", loginIdController, isEdit, (String mOnChange) {}, () {}, (String text) { if (text.length <= 0) return 'Enter valid login id'; else return null; }, 'Enter login…

VIEW QUESTION
Back To Top
Search