ferret 0.2.1
ferret: ^0.2.1 copied to clipboard
Modern HTTP inspector for Flutter — zero setup, production-safe, raw visibility. See everything. Ship nothing you didn't mean to.
Changelog #
All notable changes to this project will be documented in this file.
0.2.1 #
Changed #
- Release builds (
enableInRelease: true) mark the bubble with a red border instead of theFERRET ACTIVEtext tag, plus a "Ferret active in release build" screen-reader label. - Bubble keeps a 12px gap from every edge inside the safe area (status bar, navigation bar, notches).
- Example app enables Ferret in release builds to show the red border.
Fixed #
- Bubble sometimes started in the top-left corner when the first frame reported a 0×0 screen (and could throw); it now waits for the real size.
0.2.0 #
Added #
FerretConfig.maxBodyBytes(default 256 KB,null= unlimited) caps each captured request/response body. Truncation is UTF-8 safe, the inspector shows a "Truncated" notice, and sizes / HAR still report the full size.- Tappable URLs in headers and bodies, with a link sheet of icon buttons (copy / preview / open).
- Collapsible Headers and Body cards (chevron or tap the title).
FerretConfig.onOpenUrlcallback powers "Open" (nourl_launcherdependency).- Links tab listing unique URLs per call, grouped by source.
- Tap-to-load image previews that show the HTTP status on failure;
image/*response bodies render as images instead of raw bytes.
Fixed #
Ferret.dioInterceptorandFerret.wrapClient()read beforeFerret.install()no longer silently capture nothing; both resolve the engine per request.- Streamed
dart:iorequest bodies now respectcaptureBody/maxBodyBytes.
Changed #
- Wider dependency ranges:
share_plus: ">=11.0.0 <14.0.0"(lets apps onwin325, e.g.file_picker/flutter_secure_storage9, resolve without overrides) anddio: ^5.4.0. - Detail view tabs are scrollable to fit the new Links tab.
0.1.1 #
Added #
FerretConfig.navigatorKey/Ferret.navigatorKeyso apps usingMaterialApp.router(or another app-owned navigator) can open the inspector without an Overlay-only host.- Floating bubble: pan-only drag with edge snap, 48px size, process-local position memory, and long-press hide until hot reload / hot restart.
Changed #
- README documents GoRouter / shared-navigator setup and bubble behavior.