Skip to main content

flutter_auto_api_inspector 1.2.2 copy "flutter_auto_api_inspector: ^1.2.2" to clipboard
flutter_auto_api_inspector: ^1.2.2 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.2.2 #

  • Major Caller Readability & UX Upgrade:
    • Auto Host-Package Filtering: Automatically detects the host app's package:<name> at ApiInspector.initialize() and excludes third-party pub plugins (package_info_plus, shared_preferences, connectivity_plus, etc.) so only your own project's Controllers and Screens appear.
    • Clean 3-Row Source Strip on Request Cards: Redesigned InspectorRequestTile with a scannable 📱 Screen › ⚡ Controller.method() file.dart:line origin strip and smart AppStartup / UI class inference instead of UnknownScreen.
    • Visual Call-Flow Timeline & Controller Dropdown: Upgraded CALLER & UI ORIGIN in Request Details into a visual UI Screen → Controller → API Service stepper and added an All Controllers filter dropdown.

1.2.1 #

  • Flutter 3.50+ Web (dartdevc-canary) Stack & Filter UX Fix:
    • Updated CallerResolver to parse package:app/... line:col stack frames emitted by Flutter 3.50+ --dartdevc-canary on Web and filter out synthetic <fn> async-body duplicates.
    • Improved Requests tab empty-state messaging when active search/method filters hide captured calls (Tap "Reset" above to show all N captured requests).

1.2.0 #

  • Automatic Controller & UI Caller Origin Tracking:
    • Automatically captures and classifies the originating Controller / Bloc / Cubit / ViewModel / Notifier, UI Widget / Screen trigger, and Service / Repository wrapper (ApiProvider, Repository) from the Dart call stack across Mobile, Desktop, and Flutter Web (CallerResolver + CallerInfo).
    • 1-Click IDE File:Line Jump: Prints clickable [CALLER] Controller.method (package:app/.../controller.dart:line:col) | UI: Screen.method links in VS Code and Android Studio Debug Console.
    • In-App Call Chain Visibility: Displays compact Controller & UI caller badges on request tiles, a dedicated CALLER & UI ORIGIN card (UI → Controller → API chain + Copy File:Line) in Request Details, and instant search by Controller or filename.
    • Added enableCallerTracking, ignoredCallerClasses, ApiInspector.withCaller(...), and ApiInspector.callerOptions(...) for custom overrides.

1.1.3 #

  • Android & iOS Mobile Emulator Showcase:
    • Added real side-by-side Android 17 Emulator & iPhone 17 Pro Simulator animated walkthrough GIF (mobile_emulators_demo.gif) and 4 mobile feature screenshots to README.md and the pubspec.yaml screenshots: carousel.
    • Polished default right-edge clearance on OverlayController so wider floating error badges (API 6 • 1!) stay comfortably inset on compact mobile screens.

1.1.2 #

  • Visual Documentation & pub.dev Gallery:
    • Added animated walkthrough GIF, high-DPI feature screenshots (Web Side-Panel Dashboard, Screen-Wise Grouping with Prefetch badges, Virtualized JSON Tree Viewer with masked tokens, and In-App Debug Console), status badges, and pubspec.yaml screenshots: gallery metadata.
    • Replaced Unicode arrow glyph in Console Inspect button with Icons.chevron_right for crisp cross-platform rendering.

1.1.1 #

  • Major Performance & Zero-Jank Overhaul (Web & Mobile):
    • Non-Blocking Passive HTTP Stream Tee: ApiInspectorHttpClient.send() now returns StreamedResponse immediately upon receiving headers and tees body chunks passively up to maxBodyBytes, eliminating header-timeout stalls on large responses.
    • Virtualized InspectorJsonViewer: Replaced recursive Column + SelectableText tree with a flat virtualized ListView.builder (24px fixed extent) and lazy Raw line virtualization — renders multi-thousand-line JSON responses at 60–120 FPS with zero freeze.
    • O(maxChars) Console Preview & Pre-Compiled Masking: LogFormatter and SensitiveDataFilter now slice oversized payloads before regex masking, cap huge nested arrays (maxCollectionItems), and format bounded previews in a single pass instead of pretty-printing multi-MB payloads twice.
    • Split & Frame-Coalesced Storage Notifiers: RequestStorage separates API event listeners from consoleNotifier, maintains O(1) live counters (eventCount, failedCount, pendingCount), caches InspectorMetrics & ThemeData, and defers notifications safely outside Flutter's widget build phase so debugPrint() bursts never trigger rebuild storms.

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
160
points
0
downloads
screenshot

Documentation

API reference

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

MIT (license)

Dependencies

dio, flutter, http

More

Packages that depend on flutter_auto_api_inspector