integrated a beautify button in JSON codegen and also highlighted the key and string text.

This commit is contained in:
Mrudul-2
2025-02-22 13:49:02 +05:30
parent d6ea9f3404
commit ce5278f02b
4 changed files with 79 additions and 62 deletions

View File

@@ -64,7 +64,7 @@ class EditRequestBody extends ConsumerWidget {
// TODO: Fix JsonTextFieldEditor & plug it here
ContentType.json => Padding(
padding: kPt5o10,
child: TextFieldEditor(
child: JsonTextFieldEditor(
key: Key("$selectedId-json-body"),
fieldKey: "$selectedId-json-body-editor",
initialValue: requestModel?.httpRequestModel?.body,
@@ -74,7 +74,6 @@ class EditRequestBody extends ConsumerWidget {
.read(collectionStateNotifierProvider.notifier)
.update(body: value);
},
hintText: kHintJson,
),
),
_ => Padding(