chili_debug_view
2.0.0, released 11 days ago by chililabs.io
Flutter debug view to monitor network logs, response times and share logs.
What it does
Collects, views, and monitors network logs directly inside a Flutter app. It provides a visual debug interface and integrates with Dio to track requests and responses.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want QA engineers and project managers to easily inspect network traffic inside the app.
- Your networking layer is built using the Dio package.
Skip it when
- Your network requests do not go through the Dio library.
- You are using a Flutter version older than 3.47.0 (unless using version 1.4.x).
Strengths
- Streamlines testing and debugging workflow for QA and PMs.
- Allows sharing of network logs outside of the app.
- Includes proxy address support.
Weaknesses
- Strictly depends on Dio for network logging.
- Requires a high minimum Flutter version (3.47.0+).
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 5
Wrap your app with the DebugView widget providing a navigatorKey and add the NetworkLoggerInterceptor to your Dio instance.
import 'package:chili_debug_view/chili_debug_view.dart';
final rootKey = GlobalKey<NavigatorState>();
DebugView(
navigatorKey: rootKey,
showDebugViewButton: true,
app: app,
onProxySaved: (proxyUrl) { },
);
dio.interceptors.add(NetworkLoggerInterceptor());Alternatives
Packages that do the same job and could replace chili_debug_view.
- pretty_dio_logger
If you prefer logging network requests directly to the console instead of an in-app UI view.
50Compare - talker
If you need a comprehensive logging and debugging tool that covers more than just network requests.
94Compare
Works with
Packages commonly used together with chili_debug_view: ones it builds on, ones built on it, and its own family.
- path_providerchili_debug_view depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- diochili_debug_view depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.
- share_pluschili_debug_view depends on itShare text, files, or URIs via native share dialogs on mobile, web, and desktop.
- material_uichili_debug_view depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- cupertino_uichili_debug_view depends on itOfficial Flutter Cupertino design library implementing Apple HIG iOS and macOS user interfaces.