改成light

master
章文轩 3 years ago
parent 17c2662eb1
commit 36b8013275

@ -79,9 +79,8 @@ class _DioResponseViewState extends State<DioResponseView> {
child: HighlightView( child: HighlightView(
widget.data!.data, widget.data!.data,
language: _dioParser.highlight, language: _dioParser.highlight,
theme: Theme.of(context).brightness == Brightness.light theme: atomOneLightTheme
? atomOneLightTheme ,
: atomOneDarkTheme,
), ),
); );
case ContentType.JSON: case ContentType.JSON:
@ -95,7 +94,7 @@ class _DioResponseViewState extends State<DioResponseView> {
child: HighlightView( child: HighlightView(
json, json,
language: 'json', language: 'json',
theme: atomOneDarkTheme, theme: atomOneLightTheme,
), ),
); );
} }
@ -104,7 +103,7 @@ class _DioResponseViewState extends State<DioResponseView> {
child: HighlightView( child: HighlightView(
prettyJson(widget.data!.data), prettyJson(widget.data!.data),
language: 'json', language: 'json',
theme: atomOneDarkTheme, theme: atomOneLightTheme,
), ),
); );
case ContentType.IMAGE: case ContentType.IMAGE:
@ -121,7 +120,7 @@ class _DioResponseViewState extends State<DioResponseView> {
child: HighlightView( child: HighlightView(
prettyJson(widget.data!.data), prettyJson(widget.data!.data),
language: 'json', language: 'json',
theme: atomOneDarkTheme, theme: atomOneLightTheme,
), ),
); );
} }

Loading…
Cancel
Save