api_studio 1.0.5
api_studio: ^1.0.5 copied to clipboard
A powerful in-app API debugging and inspection tool for Flutter. Supports Dio interception, persistent logs, edit-and-run, CURL export, and a beautiful inspector dashboard.
Changelog #
5 #
✨ Added #
ApiStudio.showNavigation(context)as a single entry point for API Logs, Performance, and File Explorer through a unified floating bottom navigation bar.baseUrlandenableApiClientparameters onApiStudio.initialize()for unified API Client configuration.ApiStudio.isInitialized,ApiStudio.isApiClientEnabled, andApiStudio.configuredBaseUrlfor configuration introspection.- Optional aggregated remote performance telemetry through
enablePerformanceMonitoring, uploaded at most once per hour with a persisted upload timestamp and the existing API logging credentials. enablePerformanceMonitoringconfiguration onApiStudio.initialize(), defaulting tofalse.
🔄 Changed #
- Reduced package dependencies and removed unnecessary runtime integrations to keep API Studio lightweight.
- Performance monitoring is fully opt-in and remains inactive during API logging, automatic log upload, navigation initialization, and API Logs usage.
- Disabling Performance now removes frame callbacks, timers, subscriptions, active state, and retained performance samples.
- Frame and memory histories use bounded retention, with lower-frequency memory sampling and aggregated frame chart samples.
- API request and response payload retention and pending remote-log queues are bounded to prevent avoidable memory growth.
- Performance sections update independently to avoid rebuilding the complete inspector for every metric change.
DiService.init()skips API Client logger infrastructure whenenableApiClientis disabled.- Jank history uses a fixed-height, horizontally scrollable bar chart.
⚠️ Deprecated #
ApiStudio.initClient(). UseApiStudio.initialize(baseUrl: ..., enableApiClient: true)instead. The existing API remains available for backward compatibility.