Flutter flutter_form_builder的reset()无效的解决办法

FormBuilderTextField(
                attribute: 'description',
                initialValue: '',
                maxLines: 2,
                decoration: InputDecoration(
                  hintText: "填写其他附加说明",
                  border: OutlineInputBorder(),
                ),
              )

reset()无效时,我的解决办法是设置初始值就可以了

你可能感兴趣的:(Flutter flutter_form_builder的reset()无效的解决办法)