diff --git a/lib/src/view/dio_response_view.dart b/lib/src/view/dio_response_view.dart index 7ba451a..4f9515f 100644 --- a/lib/src/view/dio_response_view.dart +++ b/lib/src/view/dio_response_view.dart @@ -79,9 +79,8 @@ class _DioResponseViewState extends State { child: HighlightView( widget.data!.data, language: _dioParser.highlight, - theme: Theme.of(context).brightness == Brightness.light - ? atomOneLightTheme - : atomOneDarkTheme, + theme: atomOneLightTheme + , ), ); case ContentType.JSON: @@ -95,7 +94,7 @@ class _DioResponseViewState extends State { child: HighlightView( json, language: 'json', - theme: atomOneDarkTheme, + theme: atomOneLightTheme, ), ); } @@ -104,7 +103,7 @@ class _DioResponseViewState extends State { child: HighlightView( prettyJson(widget.data!.data), language: 'json', - theme: atomOneDarkTheme, + theme: atomOneLightTheme, ), ); case ContentType.IMAGE: @@ -121,7 +120,7 @@ class _DioResponseViewState extends State { child: HighlightView( prettyJson(widget.data!.data), language: 'json', - theme: atomOneDarkTheme, + theme: atomOneLightTheme, ), ); }