-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Lower the version needed by dio * Add description information and example
- Loading branch information
1 parent
7329fa9
commit 11ddef8
Showing
11 changed files
with
58 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
# Generated by pub on 2019-04-28 19:42:20.952501. | ||
async:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/async-2.0.8/lib/ | ||
# Generated by pub on 2019-07-16 19:23:19.665876. | ||
async:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/async-2.1.0/lib/ | ||
boolean_selector:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/boolean_selector-1.0.4/lib/ | ||
charcode:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/charcode-1.1.2/lib/ | ||
collection:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/collection-1.14.11/lib/ | ||
cookie_jar:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/cookie_jar-1.0.0/lib/ | ||
dio:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/dio-2.1.2/lib/ | ||
flutter:file:///Users/rich/flutter/packages/flutter/lib/ | ||
flutter_test:file:///Users/rich/flutter/packages/flutter_test/lib/ | ||
matcher:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/matcher-0.12.3+1/lib/ | ||
matcher:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/matcher-0.12.5/lib/ | ||
meta:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/meta-1.1.6/lib/ | ||
path:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/path-1.6.2/lib/ | ||
pedantic:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/pedantic-1.5.0/lib/ | ||
quiver:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/quiver-2.0.1/lib/ | ||
quiver:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/quiver-2.0.2/lib/ | ||
sky_engine:file:///Users/rich/flutter/bin/cache/pkg/sky_engine/lib/ | ||
source_span:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/source_span-1.5.5/lib/ | ||
stack_trace:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/stack_trace-1.9.3/lib/ | ||
stream_channel:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/stream_channel-1.6.8/lib/ | ||
stream_channel:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/stream_channel-2.0.0/lib/ | ||
string_scanner:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/string_scanner-1.0.4/lib/ | ||
term_glyph:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/term_glyph-1.1.0/lib/ | ||
test_api:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/test_api-0.2.2/lib/ | ||
test_api:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/test_api-0.2.4/lib/ | ||
typed_data:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/typed_data-1.1.6/lib/ | ||
vector_math:file:///Users/rich/.pub-cache/hosted/pub.flutter-io.cn/vector_math-2.0.8/lib/ | ||
dio_log:lib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
## [0.0.1] - TODO: Add release date. | ||
## [v1.0.3] - 2019/7/16 | ||
* fix some code | ||
* Lower the version needed by dio | ||
## [v1.0.2] - 2019/7/16 | ||
* Add description information and example | ||
## [v1.0.1] - 2019/6/6 | ||
* Add a display of the body content to the request | ||
* Logs with failed requests are shown in red in the list | ||
## [v1.0.0] - 2018/09/04 | ||
|
||
* TODO: Describe initial release. | ||
* initial version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,16 @@ | ||
|
||
|
||
## Getting Started | ||
|
||
This project is a starting point for a Dart | ||
[package](https://flutter.io/developing-packages/), | ||
a library module containing code that can be shared easily across | ||
multiple Flutter or Dart projects. | ||
|
||
For help getting started with Flutter, view our | ||
[online documentation](https://flutter.io/docs), which offers tutorials, | ||
samples, guidance on mobile development, and a full API reference. | ||
# dio_log | ||
|
||
dio网络请求日志插件 | ||
http requests log of dio | ||
|
||
# 使用方法 | ||
### 引用 | ||
dio_log: | ||
git: | ||
url: ssh://[email protected]:8042/cuidong/dio_log.git | ||
ref: v1.0.0 | ||
### 设置dio拦截器 | ||
### Add dependency | ||
dependencies: | ||
dio_log : 1.0.3 #^latest_version | ||
### set interceptor of dio | ||
dio.interceptors.add(HttpLogInterceptor()); | ||
### 打开log日志列表 | ||
AppNavigatorUtils.push(context, HttpLogListWidget()); | ||
### open log of dio list | ||
Navigator.of(context).push( | ||
MaterialPageRoute( | ||
builder: (context) => HttpLogListWidget(), | ||
), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import 'package:dio/dio.dart'; | ||
import 'package:dio_log/dio_log.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter/widgets.dart'; | ||
|
||
main() async { | ||
var dio = Dio(); | ||
dio.interceptors.add(HttpLogInterceptor()); | ||
|
||
///this is context of widget | ||
BuildContext context; | ||
Navigator.of(context).push( | ||
MaterialPageRoute( | ||
builder: (context) => HttpLogListWidget(), | ||
), | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
library dio_log_export; | ||
library dio_log; | ||
|
||
export 'error_log_widget.dart'; | ||
export 'http_log_interceptor.dart'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
name: dio_log | ||
description: flutter dio http log. | ||
version: 0.0.1 | ||
author: | ||
homepage: | ||
description: http requests log of dio 。This plugin helps you display log information for requests | ||
version: 1.0.3 | ||
author: rich <[email protected]> | ||
homepage: https://github.com/flutterplugin/dio_log | ||
|
||
environment: | ||
sdk: ">=2.1.0 <3.0.0" | ||
|
||
dependencies: | ||
flutter: | ||
sdk: flutter | ||
dio: 2.1.2 #dio是一个强大的Dart Http请求库,支持Restful API、FormData、拦截器、请求取消、Cookie管理、文件上传/下载、超时、自定义适配器等 https://github.com/flutterchina/dio/blob/master/README-ZH.md | ||
dio: ^2.0.0 | ||
|
||
dev_dependencies: | ||
flutter_test: | ||
|