network_tracker 0.7.2
network_tracker: ^0.7.2 copied to clipboard
A lightweight and developer-friendly Flutter package for tracking and viewing all your app's HTTP network activity
π°οΈ Network Tracker #
A lightweight and developer-friendly Flutter package for tracking and viewing all your app's HTTP network activity in real-time β powered by Dio interceptors and a clean, built-in viewer.
β¨ Features #
- β Automatically captures all Dio HTTP requests and responses
- π΅οΈββοΈ View full request/response logs directly in your app
- βοΈ Edit and repeat any captured request β including method, path, headers, query, and body
- πΎ Persistent storage: retain request logs across app sessions
- π Multi-base URL support: track requests from multiple API clients independently
- π Search by request path and filter by method or status
- π± Simple integration with just two lines of code
- π¦ No need for custom tooling or complex setup
- π Built-in internet speed test tool with real-time download measurement
- π Network info panel showing external IP, geolocation, local IP
- π Host ping tool for testing network connectivity and latency
- π Export requests as cURL for easy terminal debugging or sharing
- π§© Useful for debugging, QA, and network profiling
π Getting Started #
1. Add to your pubspec.yaml #
dependencies:
network_tracker: ^0.0.1 # Replace with latest version
π οΈ Usage #
2. Just add the interceptor to your existing Dio client: #
_dio.interceptors.add(NetworkTrackerInterceptor());
ποΈ View requests in-app #
3. Trigger the built-in viewer from anywhere in your app: #
NetworkRequestsViewer.showPage(context: context);
Grouped summary of all tracked HTTP requests, organized by request path #
View grouped and timestamped HTTP requests by path, with detailed status tracking and drill-down into each call. #
Inspect full request details including response data, headers, status, errors, and execution time in a dedicated detail view. #
Edit any request and repeat them for quicker debug. Press repeat icon (π) for quick repeat or long press to open edit menu #
π οΈ Debug Tools #
Access network diagnostic tools through the Debug Tools screen:
π Internet Speed Test #
- Test your download speed with configurable test file sizes
- Real-time speed measurement in Mbps/Gbps
π Network Information #
- View external IP address with geolocation data
- Display local IP address
- Export network info as JSON file
π Host Ping #
- Ping any host to test connectivity and latency
- Select from previously accessed URLs or enter custom hosts
- Continuous ping with real-time results
πΎ Save or share response bodies as .json files #
π License #
MIT License β free for personal or commercial use.