dio_log
5.3.0+3, released a year ago by an unverified publisher
Dio-based HTTP inspector that logs requests and responses in a Flutter app
What it does
It intercepts Dio HTTP calls, stores logs, and provides a UI to view, filter, and replicate requests. It also offers a draggable debug button for quick access.
AI-written summary of version 5.3.0+3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to debug Dio HTTP traffic in a Flutter app
- You want an in-app UI to inspect requests and responses
- You want to replicate requests for testing
Skip it when
- You are using a different HTTP client like http or GraphQL
- You need a full-featured network monitoring tool outside the app
- You want a lightweight solution without UI
Strengths
- Easy to add via interceptor
- Provides UI for filtering and replication
- Supports multiple platforms (web, mobile, desktop)
- Configurable max log count and error detection
Weaknesses
- Only works with Dio (though interceptor can be adapted)
- Adds runtime overhead for logging
- UI is basic and may not fit all design guidelines
- Requires manual addition of debug button or navigation
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add dependency, add DioLogInterceptor to dio.interceptors, optionally add showDebugBtn or navigate to HttpLogListWidget
dio.interceptors.add(DioLogInterceptor());
showDebugBtn(context, btnColor: Colors.blue);Alternatives
Packages that do the same job and could replace dio_log.
- alice_dio
Dio interceptor and network logger for Alice network inspector UI
82Compare - gql_dio_link
A GraphQL terminating link to execute requests via Dio using JSON.
75Compare - gql_http_link
HTTP link for executing GraphQL requests via JSON.
75Compare - http_interceptor
Intercept requests and responses in Dart's http package with support for retries and timeouts.
73Compare
Works with
Packages commonly used together with dio_log: ones it builds on, ones built on it, and its own family.