mirai icon indicating copy to clipboard operation
mirai copied to clipboard

How to assign a predefined `TextEditingController` or `FocusNode` to a `TextFormField` using JSON

Open vkmaxcooldude opened this issue 1 year ago • 0 comments

Description

Consider a scenario where we are making a Form using mirai, and there are several TextFormFields. Each TextFormField needs to be assigned a declared local instance of TextEditingController or FocusNode. The mirai JSON is being fetched from some API end point. I want to know, how do I make sure that the correct instance of TextEditingController or FocusNode is assigned to the respective TextFormField even if the fields are rearranged in the JSON.

Requirements

  • [ ] Checklist of requirements to be fulfilled

Additional Context

Add any other context or screenshots about the example request go here.

vkmaxcooldude avatar Jun 13 '24 18:06 vkmaxcooldude