fl_network_inspector 1.0.1
fl_network_inspector: ^1.0.1 copied to clipboard
A lightweight, modular in-app HTTP network inspector for Flutter applications with shake-to-open and SQLite persistence
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.1 - 2026-11-06 #
Added #
- Visual Assets & Documentation:
- Added visual screenshot assets (
screenshots/1.jpegthroughscreenshots/7.jpeg) showcasing request listing, filter sheet, details overview, request/response headers & body inspection, error diagnostics, and native share export. - Configured
screenshotsmetadata inpubspec.yamlenabling package screenshot previews on pub.dev. - Added screenshots gallery to
README.mdwith visual previews and descriptions.
- Added visual screenshot assets (
1.0.0 - 2026-11-04 #
Added #
- Core Architecture & Facade:
NetworkInspectorfacade singleton with thread-safe lifecycle control (initialize,open,flush,dispose).- Immutable domain models:
NetworkRecord,PayloadData,MultipartEntry,HttpErrorDetails,RecordFilter, andRecordSort. - Configurable
NetworkInspectorConfigwith release mode safety guard (compiles to zero-overhead no-op inkReleaseModeunlessenabled: trueexplicitly passed). - Sensitive header and body field redaction engine (
Authorization,Cookie,apiKey,password,token, etc.) with customizable rules. - Safe payload truncation with configurable 1MB default limits and
[Body truncated at 1MB]warnings to eliminate Out-Of-Memory crashes.
- Embedded SQLite Storage:
SqliteNetworkInspectorRepositoryutilizing nativesqfliteon iOS/Android/macOS andsqflite_common_ffion desktop/tests.- Non-blocking batch write buffer queue (
WriteBufferQueue) with micro-task debounce and auto-flush on queries. - Sub-millisecond indexed SQL filtering across URL, endpoint, HTTP method, status code, duration, and date ranges.
- Automatic database migrations and LRU/FIFO record pruning preserving the newest configured capacity (
maxRecords). InMemoryNetworkInspectorRepositoryfallback for Flutter Web and test environments.
- Transparent Network Capture & Interceptors:
- Global
HttpOverrideschaining (InspectorHttpOverridesviaNetworkInspector.startAutoCapture()) capturingdart:ioHttpClienttraffic without breaking host app proxies or SSL configurations. - Dedicated
NetworkInspectorDioInterceptoradapter for Dio 5.x apps. - Dedicated
NetworkInspectorHttpClientadapter forpackage:httpapps. - Non-destructive single-subscription stream tapping (
StreamTapTransformer) preventing "Stream has already been listened to" runtime errors. - Synthetic tracking headers (
x-fl-net-inspector-tracked-id) for zero-duplicate logging across nested interceptors. - Multipart upload metadata capture (file name, parameter, MIME type, byte size) omitting raw file binaries to prevent disk bloat.
- Two-phase manual request tracker (
NetworkInspector.startRequest) and one-shot manual logger (NetworkInspector.logApi).
- Global
- In-App Inspector UI:
- Material 3 listing screen with HTTP method badges, status code indicators, durations, timestamps, and payload sizes.
- Real-time debounced search (300ms) and multi-parameter filter sheet (methods, status codes, errors-only, duration bounds, date ranges).
- 4-tab details screen: Overview, Request, Response, and Error with Header Summary Card.
- Syntax-highlighted JSON viewer with 2-space indentation, Raw/Pretty mode toggle, and isolate-based formatting for payloads > 50KB.
- 48px touch-target clipboard copy buttons with confirmation SnackBars.
- Terminal-executable cURL command generator with line continuations and safe bash quote escaping.
- Native multi-format share sheet export (Markdown, cURL, JSON) with iPadOS
RenderBoxanchor origin crash protection. - In-app Theme toggle (Light / Dark / System).
- Shake Gesture & Developer Experience:
- Hardware accelerometer shake detection via
sensors_plusisolating dynamic user motion by subtracting static gravity (userAccelerometerEventStream()). - Automatic battery optimization: pauses sensor sampling on app backgrounding and resumes on foregrounding via
WidgetsBindingObserver. - Configurable shake sensitivity threshold (default 15.0 m/s²) and debounce cooldown (default 1500ms).
- Transparent
NetworkInspectorWrapperroot widget with zero layout side effects. - Programmatic
NetworkInspector.open([BuildContext? context])with navigator key resolution cascade and reentrancy guard.
- Hardware accelerometer shake detection via
- Platform & Modern OS Readiness:
- Android 15 & 16 compatibility with edge-to-edge transparent system navigation bar padding and 16 KB page-size support (
useLegacyPackaging = false). - Desktop FFI support on macOS, Windows, and Linux.
- Flutter Web support with graceful in-memory storage fallback.
- Android 15 & 16 compatibility with edge-to-edge transparent system navigation bar padding and 16 KB page-size support (
- Documentation & Metadata:
- Complete public API dartdoc documentation with 0 errors and 0 warnings.
- Comprehensive README with quick start guide, client setup examples, and platform support matrix.
- Valid MIT license with copyright attribution.
0.1.0 - 2026-11-02 #
Added #
- Core Architecture & Foundation:
NetworkInspectorfacade singleton with thread-safe lifecycle control (initialize,open,flush,dispose).- Immutable domain models:
NetworkRecord,PayloadData,MultipartEntry,HttpErrorDetails, andRecordFilter. - Configurable
NetworkInspectorConfigwith release mode safety guard (compiles to no-op inkReleaseModeunlessenabled: trueexplicitly forced). - Sensitive header and body field redaction engine (
Authorization,Cookie,apiKey,password,token, etc.) with customizable rules. - Safe payload truncation with configurable 1MB default limits and
[Body truncated at 1MB]warnings to eliminate Out-Of-Memory crashes.
- Embedded SQLite Storage:
SqliteNetworkInspectorRepositoryutilizing nativesqfliteon iOS/Android/macOS andsqflite_common_ffion desktop/tests.- Non-blocking batch write buffer queue (
WriteBufferQueue) with micro-task debounce and auto-flush on queries. - Sub-millisecond indexed SQL filtering across URL, endpoint, HTTP method, status code, duration, and date ranges.
- Automatic database migrations and LRU/FIFO record pruning preserving the newest configured capacity (
maxRecords). InMemoryNetworkInspectorRepositoryfallback for Flutter Web and test environments.
- Transparent Network Capture & Interceptors:
- Global
HttpOverrideschaining (InspectorHttpOverridesviaNetworkInspector.startAutoCapture()) capturingdart:ioHttpClienttraffic without breaking host app proxies or SSL configurations. - Dedicated
NetworkInspectorDioInterceptoradapter for Dio 5.x apps. - Dedicated
NetworkInspectorHttpClientadapter forpackage:httpapps. - Non-destructive single-subscription stream tapping (
StreamTapTransformer) preventing "Stream has already been listened to" runtime errors. - Synthetic tracking headers (
x-fl-net-inspector-tracked-id) for zero-duplicate logging across nested interceptors. - Multipart upload metadata capture (file name, parameter, MIME type, byte size) omitting raw file binaries to prevent disk bloat.
- Two-phase manual request tracker (
NetworkInspector.startRequest) and one-shot manual logger (NetworkInspector.logApi).
- Global
- In-App Inspector UI:
- Material 3 listing screen with HTTP method badges, status code indicators, durations, timestamps, and payload sizes.
- Real-time debounced search (300ms) and multi-parameter filter sheet (methods, status codes, errors-only, duration bounds, date ranges).
- 4-tab details screen: Overview, Request, Response, and Error with Header Summary Card.
- Syntax-highlighted JSON viewer with 2-space indentation, Raw/Pretty mode toggle, and isolate-based formatting for payloads > 50KB.
- 48px touch-target clipboard copy buttons with confirmation SnackBars.
- Terminal-executable cURL command generator with line continuations and safe bash quote escaping.
- Native multi-format share sheet export (Markdown, cURL, JSON) with iPadOS
RenderBoxanchor origin crash protection. - In-app Theme toggle (Light / Dark / System).
- Shake Gesture & Developer Experience:
- Hardware accelerometer shake detection via
sensors_plusisolating dynamic user motion by subtracting static gravity (userAccelerometerEventStream()). - Automatic battery optimization: pauses sensor sampling on app backgrounding and resumes on foregrounding via
WidgetsBindingObserver. - Configurable shake sensitivity threshold (default 15.0 m/s²) and debounce cooldown (default 1500ms).
- Transparent
NetworkInspectorWrapperroot widget with zero layout side effects. - Programmatic
NetworkInspector.open([BuildContext? context])with navigator key resolution cascade and reentrancy guard.
- Hardware accelerometer shake detection via
- Example App & Multi-Tier Testing:
- Interactive reference example app in
example/. - 100% automated test pass rate across 207 unit, integration, and widget tests.
- Interactive reference example app in
