From 36b8013275f317b31336abe34268dfc39c46af22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AB=A0=E6=96=87=E8=BD=A9?= <12812285557@qq.com> Date: Tue, 7 Sep 2021 14:53:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E6=88=90light?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/view/dio_response_view.dart | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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, ), ); }