diff --git a/.dart_tool/version b/.dart_tool/version index 13d683c..b44c537 100644 --- a/.dart_tool/version +++ b/.dart_tool/version @@ -1 +1 @@ -3.0.1 \ No newline at end of file +3.7.12 \ No newline at end of file diff --git a/android/local.properties b/android/local.properties new file mode 100644 index 0000000..7cc4608 --- /dev/null +++ b/android/local.properties @@ -0,0 +1,2 @@ +sdk.dir=/Users/mingo/Library/Android/sdk +flutter.sdk=/Users/mingo/Downloads/flutter \ No newline at end of file diff --git a/lib/http_log_list_widget.dart b/lib/http_log_list_widget.dart index def0ce6..6673931 100644 --- a/lib/http_log_list_widget.dart +++ b/lib/http_log_list_widget.dart @@ -44,8 +44,8 @@ class _HttpLogListWidgetState extends State { child: Align( child: Text( debugBtnIsShow() ? 'close overlay' : 'open overlay', - style: theme.textTheme.caption! - .copyWith(fontWeight: FontWeight.bold), + style: theme.textTheme.headlineLarge + ?.copyWith(fontWeight: FontWeight.bold), ), ), ), @@ -60,8 +60,8 @@ class _HttpLogListWidgetState extends State { child: Align( child: Text( 'clear', - style: theme.textTheme.caption! - .copyWith(fontWeight: FontWeight.bold), + style: theme.textTheme.headlineLarge + ?.copyWith(fontWeight: FontWeight.bold), ), ), ), @@ -93,7 +93,7 @@ class _HttpLogListWidgetState extends State { Color? textColor = LogPoolManager.getInstance().isError(item) ? Colors.red - : Theme.of(context).textTheme.bodyText1!.color; + : Theme.of(context).textTheme.bodyLarge!.color; return Card( margin: EdgeInsets.all(8), elevation: 6, diff --git a/lib/interceptor/dio_log_interceptor.dart b/lib/interceptor/dio_log_interceptor.dart index f71d92d..b151eb1 100644 --- a/lib/interceptor/dio_log_interceptor.dart +++ b/lib/interceptor/dio_log_interceptor.dart @@ -3,6 +3,7 @@ import 'package:dio_log/bean/err_options.dart'; import 'package:dio_log/bean/net_options.dart'; import 'package:dio_log/bean/req_options.dart'; import 'package:dio_log/bean/res_options.dart'; +// import 'package:flutter/material.dart' show debugPrint; import 'dart:developer'; import '../dio_log.dart'; import 'package:flutter/foundation.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index 7ea3068..0fa89d4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -9,7 +9,7 @@ environment: dependencies: flutter: sdk: flutter - dio: ^4.0.0 + dio: any dev_dependencies: flutter_test: