network_inspector
1.1.4, released a year ago by meruyatechnology.com
Http inspector and logger for Dio and Http packages with UI and local sqlite storage.
What it does
Logs every HTTP request, response, and error for Dio and Http clients, stores them locally using SQLite, and provides an out-of-the-box activity page UI to inspect them.
AI-written summary of version 1.1.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to inspect HTTP requests, responses, and errors directly inside your Flutter app using a visual UI.
- You need to log network activities for both Dio and the standard http package.
Skip it when
- You only need console logging without any in-app visual UI.
- You are using an HTTP client other than Dio or the standard http package.
Strengths
- Supports both Dio and http packages.
- Includes built-in Material 3 and dark mode UI for inspecting network traffic.
- Persists logs locally using SQLite.
Weaknesses
- Relies on manual navigation setup or GlobalKey configuration to open the inspector UI.
- Limited to Dio and standard http package clients.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 7
Call NetworkInspector.initialize() after WidgetsFlutterBinding.ensureInitialized(), and add the respective interceptor to your Dio or http clients.
void main() {
WidgetsFlutterBinding.ensureInitialized();
NetworkInspector.initialize();
runApp(const ExampleApp());
}Alternatives
Packages that do the same job and could replace network_inspector.
- pretty_dio_logger
If you only use Dio and prefer pretty console logging over an in-app visual UI.
50Compare - talker
If you want a more comprehensive logging and error-handling ecosystem with a dedicated Flutter screen.
94Compare
Works with
Packages commonly used together with network_inspector: ones it builds on, ones built on it, and its own family.
- intlnetwork_inspector depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- dionetwork_inspector depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.
- share_plusnetwork_inspector depends on itShare text, files, or URIs via native share dialogs on mobile, web, and desktop.
- sqflitenetwork_inspector depends on itSQLite plugin for Flutter supporting iOS, Android and MacOS.
- providernetwork_inspector depends on itA lightweight wrapper around InheritedWidget for state management