mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 13:51:20 +08:00
implementation of bool,null and number styles
This commit is contained in:
@ -89,7 +89,21 @@ class _JsonTextFieldEditorState extends State<JsonTextFieldEditor> {
|
|||||||
? kDarkCodeTheme['string']?.color
|
? kDarkCodeTheme['string']?.color
|
||||||
: kLightCodeTheme['string']?.color,
|
: kLightCodeTheme['string']?.color,
|
||||||
),
|
),
|
||||||
|
numberHighlightStyle: kCodeStyle.copyWith(
|
||||||
|
color: Theme.of(context).brightness == Brightness.dark
|
||||||
|
? kDarkCodeTheme['number']?.color
|
||||||
|
: kLightCodeTheme['number']?.color,
|
||||||
|
),
|
||||||
|
boolHighlightStyle: kCodeStyle.copyWith(
|
||||||
|
color: Theme.of(context).brightness == Brightness.dark
|
||||||
|
? kDarkCodeTheme['literal']?.color
|
||||||
|
: kLightCodeTheme['literal']?.color,
|
||||||
|
),
|
||||||
|
nullHighlightStyle: kCodeStyle.copyWith(
|
||||||
|
color: Theme.of(context).brightness == Brightness.dark
|
||||||
|
? kDarkCodeTheme['variable']?.color
|
||||||
|
: kLightCodeTheme['variable']?.color,
|
||||||
|
),
|
||||||
keyHighlightStyle: kCodeStyle.copyWith(
|
keyHighlightStyle: kCodeStyle.copyWith(
|
||||||
color: Theme.of(context).brightness == Brightness.dark
|
color: Theme.of(context).brightness == Brightness.dark
|
||||||
? kDarkCodeTheme['attr']?.color
|
? kDarkCodeTheme['attr']?.color
|
||||||
@ -105,6 +119,7 @@ class _JsonTextFieldEditorState extends State<JsonTextFieldEditor> {
|
|||||||
showErrorMessage: true,
|
showErrorMessage: true,
|
||||||
readOnly: widget.readOnly,
|
readOnly: widget.readOnly,
|
||||||
isFormatting: true,
|
isFormatting: true,
|
||||||
|
|
||||||
key: Key(widget.fieldKey),
|
key: Key(widget.fieldKey),
|
||||||
controller: controller,
|
controller: controller,
|
||||||
focusNode: editorFocusNode,
|
focusNode: editorFocusNode,
|
||||||
|
Reference in New Issue
Block a user