I am trying to get this to not get this error. I am for some reason getting an error where the decode and add json to the document is giving the error in the image.
<code>`//Creates a new controller for each Note to be displayed
QuillController newController(int index, String description) {
_quillscontroller.add(QuillController.basic());
_quillscontroller[index].readOnly = true;
List jsonText = jsonDecode(description);
_quillscontroller[index].document = Document.fromJson(jsonText);
return _quillscontroller[index];
}`
</code>
<code>`//Creates a new controller for each Note to be displayed
QuillController newController(int index, String description) {
_quillscontroller.add(QuillController.basic());
_quillscontroller[index].readOnly = true;
List jsonText = jsonDecode(description);
_quillscontroller[index].document = Document.fromJson(jsonText);
return _quillscontroller[index];
}`
</code>
`//Creates a new controller for each Note to be displayed
QuillController newController(int index, String description) {
_quillscontroller.add(QuillController.basic());
_quillscontroller[index].readOnly = true;
List jsonText = jsonDecode(description);
_quillscontroller[index].document = Document.fromJson(jsonText);
return _quillscontroller[index];
}`
An android application where there are multiple editors open from Quill Flutter.
New contributor
Vimal Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.