developer_tools_network
Network HTTP inspector for developer_tools. Inspect HTTP requests and responses from the in-app debug overlay — an inlined, rebranded fork of Alice with no external alice dependency.
Features
- Capture HTTP calls via
NetworkDioAdapter(Dio interceptor). - Browse requests/responses, search and sort, view stats.
- Shake-to-open and notification entry points.
- Export Postman collection — share all captured calls as a Postman Collection (v2.1) file.
Install
dependencies:
developer_tools_network: ^0.0.3
Usage
Register the extension with developer_tools and attach the Dio adapter:
final networkInspector = NetworkInspector(
configuration: NetworkInspectorConfiguration(navigatorKey: navigatorKey),
);
dio.interceptors.add(NetworkDioAdapter(inspector: networkInspector));
MaterialApp(
navigatorKey: navigatorKey,
builder: DeveloperTools.builder(
extensions: [DeveloperToolsNetwork(instance: networkInspector)],
),
);
Open the inspector (overlay entry, notification, or shake), then use the tools in the calls-list app bar.
Export to Postman
Tap the share icon in the inspector calls list to turn every captured call into a
Postman Collection (v2.1) and open the share sheet. The resulting
*.postman_collection.json file imports directly into Postman.
Each request item preserves the full captured data:
- HTTP method and full URL (protocol, host, path, query params)
- Request headers (request cookies are folded into a
Cookieheader) - Request body — raw JSON/text, or multipart
form-data(fields and files) - The captured response as a saved example (status code + reason, headers, body)
- Extra metadata with no native Postman field (client, duration, sizes, timestamps) preserved in the request description
Built on the postman_collection package.
The collection can also be built programmatically from a list of captured
NetworkHttpCalls:
final collection = NetworkPostmanExportHelper.buildCollection(
name: 'My App Network',
calls: calls,
);
final json = NetworkPostmanExportHelper.encode(collection);
License
MIT
Libraries
- developer_tools_network
- network_dio_adapter
- network_inspector/core/network_adapter
- network_inspector/core/network_core
- network_inspector/core/network_logger
- network_inspector/core/network_memory_storage
- network_inspector/core/network_notification
- network_inspector/core/network_storage
- network_inspector/core/network_translations
- network_inspector/core/network_utils
- network_inspector/helper/network_conversion_helper
- network_inspector/helper/network_export_helper
- network_inspector/helper/network_postman_export_helper
- network_inspector/helper/operating_system
- network_inspector/model/network_configuration
- network_inspector/model/network_export_result
- network_inspector/model/network_form_data_file
- network_inspector/model/network_from_data_field
- network_inspector/model/network_http_call
- network_inspector/model/network_http_error
- network_inspector/model/network_http_request
- network_inspector/model/network_http_response
- network_inspector/model/network_log
- network_inspector/model/network_translation
- network_inspector/network_inspector
- network_inspector/ui/call_details/model/network_call_details_tab
- network_inspector/ui/call_details/page/network_call_details_page
- network_inspector/ui/call_details/widget/network_call_error_screen
- network_inspector/ui/call_details/widget/network_call_expandable_list_row
- network_inspector/ui/call_details/widget/network_call_list_row
- network_inspector/ui/call_details/widget/network_call_overview_screen
- network_inspector/ui/call_details/widget/network_call_request_screen
- network_inspector/ui/call_details/widget/network_call_response_screen
- network_inspector/ui/calls_list/model/network_calls_list_sort_option
- network_inspector/ui/calls_list/model/network_calls_list_tab_item
- network_inspector/ui/calls_list/page/network_calls_list_page
- network_inspector/ui/calls_list/widget/network_call_list_item_widget
- network_inspector/ui/calls_list/widget/network_calls_list_screen
- network_inspector/ui/calls_list/widget/network_empty_logs_widget
- network_inspector/ui/calls_list/widget/network_error_logs_widget
- network_inspector/ui/calls_list/widget/network_inspector_screen
- network_inspector/ui/calls_list/widget/network_log_list_widget
- network_inspector/ui/calls_list/widget/network_logs_screen
- network_inspector/ui/calls_list/widget/network_raw_log_list_widger
- network_inspector/ui/calls_list/widget/network_sort_dialog
- network_inspector/ui/common/network_context_ext
- network_inspector/ui/common/network_dialog
- network_inspector/ui/common/network_page
- network_inspector/ui/common/network_scroll_behavior
- network_inspector/ui/common/network_theme
- network_inspector/ui/stats/network_stats_page
- network_inspector/ui/widget/network_stats_row
- network_inspector/utils/curl
- network_inspector/utils/network_parser
- network_inspector/utils/num_comparison
- network_inspector/utils/shake_detector