diff --git a/lib/widgets/editor_json.dart b/lib/widgets/editor_json.dart index 3e4c24258..69ce8cd9a 100644 --- a/lib/widgets/editor_json.dart +++ b/lib/widgets/editor_json.dart @@ -51,7 +51,10 @@ class _JsonTextFieldEditorState extends State { if (widget.initialValue != null) { controller.text = widget.initialValue!; } - controller.formatJson(sortJson: false); + Future.delayed(Duration(milliseconds: 50), () { + controller.formatJson(sortJson: false); + setState(() {}); + }); editorFocusNode = FocusNode(debugLabel: "Editor Focus Node"); }