mirror of
https://github.com/foss42/apidash.git
synced 2025-05-31 14:23:45 +08:00
used themes.dart file based colors
This commit is contained in:
@ -83,10 +83,15 @@ class _JsonTextFieldEditorState extends State<JsonTextFieldEditor> {
|
||||
},
|
||||
child: JsonTextField(
|
||||
stringHighlightStyle: kCodeStyle.copyWith(
|
||||
color: kColorJSONString,
|
||||
color: Theme.of(context).brightness == Brightness.dark
|
||||
? kDarkCodeTheme['string']?.color
|
||||
: kLightCodeTheme['string']?.color,
|
||||
),
|
||||
|
||||
keyHighlightStyle: kCodeStyle.copyWith(
|
||||
color: kColorJSONKey,
|
||||
color: Theme.of(context).brightness == Brightness.dark
|
||||
? kDarkCodeTheme['attr']?.color
|
||||
: kLightCodeTheme['attr']?.color,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
errorContainerDecoration: BoxDecoration(
|
||||
|
Reference in New Issue
Block a user