Im new, I trying to do a onchange value while typing in text field, the value are updating the Text widget.
I tried two way, one is from onchanged , another is using TextEditingController, none of it working.
final txtController = TextEditingController();
String onchangeval = "";
TextFormField(
onChanged: (value){
onchangeval = value;
},
controller: txtController
),
Text("value_1 : " + onchangeval),
Text("value_2 : " + txtController.text),
NOTE : currently using extends HookWidget