hindsight_flutter_svg 0.9.3
hindsight_flutter_svg: ^0.9.3 copied to clipboard
Optional flutter_svg integration for the Hindsight Flutter session replay SDK.
Changelog #
0.9.3 #
- Performance: resolving an SVG asset's bytes or its colorFilter color no longer FORCES a layer capture. A freshly-appearing screen resolves many icons across successive frames, and a forced capture per icon landed a burst of O(tree) walks right as the screen first appeared (the "slight hitch on first open"). These now mark layer activity normally, so the recorder coalesces them into its cadence and defers them past an in-flight route/overlay transition.
0.9.2 #
- Fix: SVG icons recolored with a
colorFilter(e.g.SvgPicture.asset(colorFilter: ColorFilter.mode(color, srcIn))) lost their color in RELEASE builds, wheredart:ui'sColorFilter/ColortoString()is stripped toInstance of '...'— the previous string-parsing color extraction silently returned null, so every tinted icon rendered with the default color. The filter's color is now recovered by rendering it to a 1x1 pixel and reading it back (identical in debug, profile and release). Input-dependent filters (matrix, etc.) record no color, preserving multi-color art.
0.9.1 #
- Resolves the effective SVG
currentColor(loaderSvgTheme→ inheritedDefaultSvgTheme→ flutter_svg's default) and ships it as the vector'scurrentColor, sostroke="currentColor"/fill="currentColor"icons replay in their real themed color instead of a default. A srcIncolorFilterstill takes precedence as the full-picturecolortint, and hard-coded fills are left untouched. Requireshindsight_flutter ^0.9.5.
0.9.0 #
- Initial public release of the optional
flutter_svgadapter for Hindsight. - Adds
HindsightFlutterSvg.install()andHindsightFlutterSvg.uninstall(). - Captures bundled
.svgSvgPicture.assetwidgets as structured SVG vector layers instead of leaf-raster PNG assets. - Does not inline raw
SvgPicture.string, memory, file, network, or non-SVG asset sources.