Skip to main content

flutter_auto_api_inspector 1.1.0 copy "flutter_auto_api_inspector: ^1.1.0" to clipboard
flutter_auto_api_inspector: ^1.1.0 copied to clipboard

Automatic network monitoring, screen-based API debugging, interactive JSON viewer, and in-app Debug Console for Flutter across Android, iOS, and Web.

1.1.0 #

  • Smart Prefetch & 3-Level Screen Resolution:
    • Priority 1 — Per-Request Screen Override: Tag prefetched or shared API calls via Dio Options(extra: {'inspector_screen': 'ProfileScreen'}), ApiInspector.screenOptions('ProfileScreen'), or ApiInspector.withScreen('ProfileScreen', () => ...) (works across Dio, package:http, and dart:io, including async/await).
    • Priority 2 — Declarative URL-to-Screen Rules: Configure screenRules (substring, * wildcard, or regex: patterns where the most specific match wins) or a custom screenResolver callback in ApiInspectorConfig to automatically group prefetched/background API calls under their owning screen.
    • Priority 3 — Active Route (Default): Automatic tracking via ApiInspector.navigatorObserver / setCurrentScreen.
  • Prefetch Origin Visibility:
    • ApiEvent now records triggeredFromScreen, screenSource, and isPrefetched (included in JSON exports too).
    • Console logs, Request List tiles, and Request Details now highlight prefetched calls with a Prefetched from <Screen> badge.
    • Settings tab displays active screen resolution rules and priority order.
  • UI Fix: Minimized restore pill now reactively updates live request and error counts as new calls arrive while minimized.

1.0.0 #

  • Initial release of flutter_auto_api_inspector.
  • Core Monitoring: Automatic lifecycle tracking linking request start, response, error, status, size, and duration by unique request ID.
  • Adapters:
    • Dio interceptor (ApiInspector.attachDio, ApiInspector.createDio) with multipart metadata and stream safety.
    • package:http BaseClient wrapper (ApiInspector.attachHttp, ApiInspector.createHttpClient).
    • Optional dart:io HttpOverrides support on mobile/desktop with Web-safe conditional stub.
  • Automatic Screen Tracking:
    • ApiInspectorNavigatorObserver with route-start context snapshots so async responses stay attached to the originating screen.
    • Support for nested navigators (createNavigatorObserver), custom routeNameExtractor, and manual tab updates (setCurrentScreen).
  • Debug Console & In-App Console:
    • Structured IDE Debug Console output with optional ANSI colors.
    • Live In-App Console tab capturing API logs, screen transitions, debugPrint(), print() (via runWithConsoleCapture), and FlutterError exceptions.
  • Responsive In-App Inspector Dashboard:
    • Draggable snap-to-edge floating trigger with live status/error badge.
    • Docked interactive side-panel on Web/Desktop wide viewports; full-screen inspector on mobile.
    • Dashboard KPIs, All Requests with multi-criteria search/filters, Screen-wise Grouping, Failed Requests, Slow Requests, Console, and Settings.
    • Request Details with Overview, Request, Response, Headers, Query Parameters, Error tabs, interactive collapsible JSON tree viewer with search/raw view, and one-tap Copy cURL / Export Masked JSON.
  • Security & Performance:
    • Disabled in release builds by default (kDebugMode).
    • Automatic recursive masking for sensitive headers, query parameters, URLs, JSON bodies, and exports.
    • Bounded in-memory FIFO history and configurable body size truncation.
0
likes
0
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

Automatic network monitoring, screen-based API debugging, interactive JSON viewer, and in-app Debug Console for Flutter across Android, iOS, and Web.

Repository (GitHub)
View/report issues

Topics

#networking #debugging #inspector #dio #http

License

unknown (license)

Dependencies

dio, flutter, http

More

Packages that depend on flutter_auto_api_inspector