better json editor
This commit is contained in:
@@ -426,6 +426,7 @@ class _JsonEditorState extends State<JsonEditor> {
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
const Text('Config Editor: '),
|
||||
if (!widget.hideEditorsMenuButton)
|
||||
PopupMenuButton<Editors>(
|
||||
initialValue: _editor,
|
||||
@@ -554,8 +555,9 @@ class _JsonEditorState extends State<JsonEditor> {
|
||||
child: TextFormField(
|
||||
controller: _controller,
|
||||
onChanged: parseData,
|
||||
maxLines: 10,
|
||||
// expands: true,
|
||||
maxLines: null,
|
||||
minLines: null,
|
||||
expands: true,
|
||||
textAlignVertical: TextAlignVertical.top,
|
||||
decoration: const InputDecoration(
|
||||
border: InputBorder.none,
|
||||
|
||||
@@ -274,7 +274,7 @@ class ProfileDetailsPage extends HookConsumerWidget with PresLogger {
|
||||
],
|
||||
if (state.isEditing) ...[
|
||||
SizedBox(
|
||||
height: MediaQuery.of(context).size.height * 0.8,
|
||||
height: MediaQuery.of(context).size.height * 0.9,
|
||||
child: JsonEditor(
|
||||
expandedObjects: const ["outbounds"],
|
||||
onChanged: (value) {
|
||||
|
||||
Reference in New Issue
Block a user