dio5_log 5.1.0 dio5_log: ^5.1.0 copied to clipboard
A plug-in that captures requests and views them within the application, providing functions such as request replication and JSON expansion
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dio5_log
With Flutter:
$ flutter pub add dio5_log
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
dio5_log: ^5.1.0
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dio5_log/bean/err_options.dart';
import 'package:dio5_log/bean/net_options.dart';
import 'package:dio5_log/bean/req_options.dart';
import 'package:dio5_log/bean/res_options.dart';
import 'package:dio5_log/dio_log.dart';
import 'package:dio5_log/http_log_list_widget.dart';
import 'package:dio5_log/interceptor/diox_log_interceptor.dart';
import 'package:dio5_log/overlay_draggable_button.dart';
import 'package:dio5_log/page/log_error_widget.dart';
import 'package:dio5_log/page/log_request_widget.dart';
import 'package:dio5_log/page/log_response_widget.dart';
import 'package:dio5_log/page/log_widget.dart';
import 'package:dio5_log/theme/style.dart';
import 'package:dio5_log/utils/copy_clipboard.dart';
import 'package:dio5_log/utils/json_utils.dart';
import 'package:dio5_log/utils/log_pool_manager.dart';
import 'package:dio5_log/utils/time_utils.dart';
import 'package:dio5_log/utils/url_utils.dart';
import 'package:dio5_log/widget/json_view.dart';