mirror of
https://github.com/foss42/apidash.git
synced 2025-12-12 08:12:46 +08:00
readOnly implementation in widget as well as history page
This commit is contained in:
@@ -14,11 +14,13 @@ class JsonTextFieldEditor extends StatefulWidget {
|
||||
required this.fieldKey,
|
||||
this.onChanged,
|
||||
this.initialValue,
|
||||
this.readOnly = false,
|
||||
});
|
||||
|
||||
final String fieldKey;
|
||||
final Function(String)? onChanged;
|
||||
final String? initialValue;
|
||||
final bool readOnly;
|
||||
@override
|
||||
State<JsonTextFieldEditor> createState() => _JsonTextFieldEditorState();
|
||||
}
|
||||
@@ -101,6 +103,7 @@ class _JsonTextFieldEditorState extends State<JsonTextFieldEditor> {
|
||||
borderRadius: kBorderRadius8,
|
||||
),
|
||||
showErrorMessage: true,
|
||||
readOnly: widget.readOnly,
|
||||
isFormatting: true,
|
||||
key: Key(widget.fieldKey),
|
||||
controller: controller,
|
||||
|
||||
Reference in New Issue
Block a user