skip to Main Content

in textformField how to use initialValue and controller both at same time? – Flutter

i want to use controller and initialValue both at same time but showing error TextFormField( controller: txtEmail, initialValue: initialValues['emailAddress'], decoration: InputDecoration( prefixIcon: Icon(Icons.email), label: Text('Email Address'), focusedBorder: UnderlineInputBorder(borderSide: BorderSide(color: accentColor)), enabledBorder: UnderlineInputBorder(borderSide: BorderSide(color: iconColor)) ), ),

VIEW QUESTION
Back To Top
Search