From 72ce5742be49c57e476943e6fe935586ed42e194 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 15:25:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E9=A1=B5=E9=9D=A2=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/builders/dio_error_builder.dart | 6 +++--- lib/src/builders/dio_responses_builder.dart | 6 +++--- lib/src/builders/flutter_error_builder.dart | 4 ++-- lib/src/parser/unfocus_parser.dart | 6 +++--- lib/src/views/info_view.dart | 4 ++-- lib/src/views/platform_specific/info_tile.dart | 4 ++-- lib/src/views/settings_view.dart | 2 +- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/src/builders/dio_error_builder.dart b/lib/src/builders/dio_error_builder.dart index 63ec106..b59827b 100644 --- a/lib/src/builders/dio_error_builder.dart +++ b/lib/src/builders/dio_error_builder.dart @@ -21,14 +21,14 @@ class DioErrorBuilder extends StatelessWidget { ), ); }, - title: Text(data.requestOptions.path), - subtitle: Text('${data.message}\n$date'), + title: Text(data.requestOptions.path,style: TextStyle(fontSize: 16,color: Color(0xFF333333)),), + subtitle: Text('${data.message}\n$date',style: TextStyle(fontSize: 14,color: Color(0xFF666666)),), trailing: Row( mainAxisSize: MainAxisSize.min, children: [ Chip( backgroundColor: Colors.blue.withOpacity(0.4), - label: Text(data.requestOptions.method), + label: Text(data.requestOptions.method,style: TextStyle(fontSize: 14,color: Colors.black),), ), ], ), diff --git a/lib/src/builders/dio_responses_builder.dart b/lib/src/builders/dio_responses_builder.dart index e3988d2..4850d26 100644 --- a/lib/src/builders/dio_responses_builder.dart +++ b/lib/src/builders/dio_responses_builder.dart @@ -18,14 +18,14 @@ class DioResponseBuilder extends StatelessWidget { builder: (context) => DioResponseView(data: data), ), ), - title: Text(data.requestOptions.path), - subtitle: Text(date.toString()), + title: Text(data.requestOptions.path,style: TextStyle(fontSize: 16,color: Color(0xFF333333)),), + subtitle: Text(date.toString(),style: TextStyle(fontSize: 14,color: Color(0xFF666666)),), trailing: Row( mainAxisSize: MainAxisSize.min, children: [ Chip( backgroundColor: Colors.blue.withOpacity(0.8), - label: Text(data.requestOptions.method), + label: Text(data.requestOptions.method,style: TextStyle(fontSize: 14,color: Colors.black),), ), ], ), diff --git a/lib/src/builders/flutter_error_builder.dart b/lib/src/builders/flutter_error_builder.dart index fe77d00..ef89e3a 100644 --- a/lib/src/builders/flutter_error_builder.dart +++ b/lib/src/builders/flutter_error_builder.dart @@ -9,8 +9,8 @@ class FlutterErrorBuilder extends StatelessWidget { Widget build(BuildContext context) { return ListTile( tileColor: Colors.red.withOpacity(0.4), - title: Text(details.exception.toString()), - trailing: Chip(label: Text('EXCEPTION'), backgroundColor: Colors.red), + title: Text(details.exception.toString(),style: TextStyle(fontSize: 14,color: Colors.black),), + trailing: Chip(label: Text('EXCEPTION',style: TextStyle(fontSize: 14,color: Colors.black),), backgroundColor: Colors.red), onTap: () { Navigator.push( context, diff --git a/lib/src/parser/unfocus_parser.dart b/lib/src/parser/unfocus_parser.dart index 4e85a7a..62b5710 100644 --- a/lib/src/parser/unfocus_parser.dart +++ b/lib/src/parser/unfocus_parser.dart @@ -17,16 +17,16 @@ class UnfocusParser extends StatelessWidget { MaterialPageRoute( builder: (context) => Scaffold( appBar: AppBar(title: Text(data.runtimeType.toString())), - body: Text(data.toString()), + body: Text(data.toString(),style: TextStyle(fontSize: 16,color: Colors.black),), ), ), ), title: Text( data.toString(), - maxLines: 1, + maxLines: 1, style: TextStyle(fontSize: 16,color: Colors.black), ), trailing: Chip( - label: Text(tag ?? data.runtimeType.toString()), + label: Text(tag ?? data.runtimeType.toString(),style: TextStyle(fontSize: 16,color: Colors.black),), ), ), ); diff --git a/lib/src/views/info_view.dart b/lib/src/views/info_view.dart index ecf3a8a..b52528d 100644 --- a/lib/src/views/info_view.dart +++ b/lib/src/views/info_view.dart @@ -71,7 +71,7 @@ class _InfoViewState extends State SliverList( delegate: SliverChildListDelegate([ ListTile( - title: Text('Package Info'), + title: Text('Package Info',style: TextStyle(fontSize: 18,color: Color(0xff333333))), tileColor: Colors.blue.withOpacity(0.2), ), InfoTile(title: 'appName', subTitle: packageInfo!.appName), @@ -81,7 +81,7 @@ class _InfoViewState extends State title: 'packageName', subTitle: packageInfo!.packageName), InfoTile(title: 'version', subTitle: packageInfo!.version), ListTile( - title: Text('Device Info'), + title: Text('Device Info',style: TextStyle(fontSize: 18,color: Color(0xff333333))), tileColor: Colors.blue.withOpacity(0.1), ), ])), diff --git a/lib/src/views/platform_specific/info_tile.dart b/lib/src/views/platform_specific/info_tile.dart index c1d1251..03df336 100644 --- a/lib/src/views/platform_specific/info_tile.dart +++ b/lib/src/views/platform_specific/info_tile.dart @@ -15,8 +15,8 @@ class InfoTile extends StatelessWidget { @override Widget build(BuildContext context) { return ListTile( - title: Text(title), - subtitle: Text(subTitle), + title: Text(title,style: TextStyle(fontSize: 14,color: Color(0xff333333)),), + subtitle: Text(subTitle,style: TextStyle(fontSize: 14,color: Color(0xff666666))), onLongPress: () async { ScaffoldMessenger.of(context).hideCurrentSnackBar(); Clipboard.setData(ClipboardData(text: subTitle)); diff --git a/lib/src/views/settings_view.dart b/lib/src/views/settings_view.dart index 0e60455..eb0c58c 100644 --- a/lib/src/views/settings_view.dart +++ b/lib/src/views/settings_view.dart @@ -14,7 +14,7 @@ class _SettingsViewState extends State { return ListView( children: [ SwitchListTile( - title: Text('终端日志'), + title: Text('终端日志',style: TextStyle(fontSize: 16,color: Colors.black),), subtitle: Text(''), value: LoggerData.markLogger, onChanged: (state) {