reactive_forms icon indicating copy to clipboard operation
reactive_forms copied to clipboard

in ReactiveTextField widget set initial value as control(TextEditingController) value

Open Imesh7 opened this issue 2 years ago • 4 comments

@joanpablo I needs to set initial value of TextEditingController()..text value, How to overcome this situation

ReactiveTextField<String>(
                  formControlName:"control",
                  controller: TextEditingController()..text = value.name ?? '',
                  textInputAction: TextInputAction.next,
                  keyboardType: TextInputType.name,
                  textAlign: TextAlign.start,
                  decoration: const InputDecoration(
                    prefixIcon: Icon(Icons.account_circle_outlined),
                  ),
                ),

Imesh7 avatar Feb 10 '23 11:02 Imesh7