flutter_svga 0.0.14
flutter_svga: ^0.0.14 copied to clipboard
Flutter SVGA player with intelligent caching, audio support, and dynamic elements. Active replacement for archived svgaplayer_flutter.
0.0.14 - 2026-10-16 #
🚀 New Features #
- Enhanced Audio & Volume Architecture (#9, PR #10):
- Added initial
volumeandmutedparameters toSVGAAnimationControllerconstructor - Added
effectiveVolumegetter andtoggleMute()helper onSVGAAnimationController - Added declarative
volumeandmutedcontrols toSVGAEasyPlayer - Added interactive Audio Volume slider and Mute toggle to the example app
- Thanks to @Sansuihe for PR #10!
- Added initial
- Pause & Resume Playback:
- Added
controller.pause(),controller.resume(), andcontroller.isPausedto pause and resume animations and synchronized audio layers seamlessly
- Added
- Expanded
SVGAEasyPlayerCapabilities:- Added
loops,dynamicCallback,onFinished,filterQuality,allowDrawingOverflow,clearsAfterStop, andpreferredSize
- Added
- Per-Request Cache Control:
- Added optional
useCacheparameter toSVGAParser.decodeFromURLandSVGAParser.decodeFromAssets
- Added optional
🛠 Fixes & Hardening #
- Safe Network Caching & Corrupted Cache Recovery: Verify HTTP 200 status before decoding/caching and automatically evict corrupted cache entries on decode failure
- Renderer Range & Path Safety (#11): Guard sprite frame bounds, clamp RGBA/alpha channels for non-standard SVGA exporters, and support multi-space/scientific-notation SVG paths
- MP3 Frame Sync Detection: Detect both
ID3-tagged and raw MPEG frame-sync (0xFF 0xE0) audio streams inSVGAParser.isMP3Data - Audio Layer Lifecycle: Properly dispose and clear existing audio layers when reassigning
SVGAAnimationController.videoItemor callingreset(), and guard async gaps against post-dispose calls
📦 SDK, Dependencies & Tests #
- Updated Flutter & Dart SDK: Upgraded to Flutter
3.47.7and Dart SDK constraint^3.13.5 - Updated Dependencies:
archive: ^4.5.2,protobuf: ^6.1.0,audioplayers: ^6.8.1,path_provider: ^2.1.6 - Comprehensive Test Suite: Added unit and widget tests covering volume/mute control, pause/resume lifecycle, memory release, dynamic entities, caching, MP3 detection, and widgets
- Professional Documentation: Redesigned
README.mdwith badges, feature guides, and API reference tables
0.0.13 - 2026-01-20 #
🚀 New Features #
- Volume Control (#9, PR #10): Added audio volume control to
SVGAAnimationControllercontroller.volume = 0.5— Set volume level (0.0 to 1.0)controller.muted = true/false— Toggle mute without losing volume setting- Thanks to @Sansuihe for the contribution!
⚡ Performance Improvements #
- Memory Optimization (#8): Reduced Dart heap memory usage by clearing protobuf internal structures after parsing
- Added
freeze()method toMovieEntitythat clears raw image data after extraction - Addresses high memory from
FieldSet,PbList, andFrameEntityinstances - Thanks to @jianleepb for reporting!
- Added
0.0.12 - 2025-12-24 #
🚀 Improvements #
- Updated Dart SDK constraint to
^3.10.4for compatibility with Flutter 3.38.5
📝 Maintenance #
- Shortened package description for pub.dev compliance (under 180 characters)
- Fixed lint warnings in generated protobuf files by adding
no_leading_underscores_for_local_identifiersto ignore rules
0.0.11 - 2025-12-10 #
📝 Documentation #
-
Enhanced README with competitive positioning
- Added "Why flutter_svga?" section highlighting active maintenance vs archived
svgaplayer_flutter - Added comparison table (flutter_svga vs svgaplayer_flutter vs Lottie)
- Added migration guide for users switching from
svgaplayer_flutter
- Added "Why flutter_svga?" section highlighting active maintenance vs archived
-
Improved SEO & Discoverability
- Updated
pubspec.yamldescription with better keywords (actively maintained, alternative, replacement) - Added relevant topics: animation, svga, vector-graphics, lottie-alternative, ui-effects
- Updated
0.0.10 - 2025-12-03 #
📝 Documentation #
- Updated README to version 0.0.10 for pub.dev visibility
- Added contributors @Sansuihe and @tungpham6195 to README
0.0.9 - 2025-12-03 #
🛠 Fixes #
- Fixed audio cache collision bug where different SVGA files with the same
audioKeybut different audio content incorrectly shared cached files (#6).
Now uses MD5 hash of audio data to ensure unique cache files.
(Thanks to @Sansuihe for reporting and suggesting the fix.)
🚀 Improvements #
- Protobuf dependency updated to
^6.0.0, ensuring compatibility withretrofit_generator >=10.1.0(#7).
(Thanks to @tungpham6195 for reporting.)
0.0.8 - 2025-10-18 #
🛠 Fixes #
- Fixed repeated music playback bug when reusing the same audio key.
(Thanks to @wonderkidshihab for the PR and @Sansuihe for reporting.)
🚀 Improvements #
- Optimized audio handling and cache logic for better playback stability.
- Updated README and credits for contributors.
- Version bump for pub.dev publication.
0.0.7 - 2025-10-18 #
0.0.6 - 2025-06-26 #
0.0.4 Update (2025-02-09) #
🔥 New Features & Improvements #
- ✅ Added Audio Support: Integrated audio playback within SVGA animations using the
audioplayerspackage.
0.0.3 Update (2025-01-30) #
🔥 New Features & Improvements #
- ✅ Added Pause & Resume Playback Functions for SVGA animations.
- ✅ Enhanced Error Handling & Logging for better debugging.
- ✅ Improved Performance when loading SVGA animations.
🛠 Fixes & Optimizations #
- 🛠 Fixed potential crashes when loading SVGA assets.
- 🛠 Optimized memory usage for large SVGA files.
- 🛠 Improved logging messages for debugging.
0.0.2 Update (2025-01-30) #
🔥 Updates & Improvements #
- ✅ Added example GIFs for better demonstration.
- ✅ Supported all platforms including Web & Desktop.
0.0.1 Initial Release (2025-01-29) #
🎉 New Features #
- ✅ Added support for SVGA parsing and rendering.
- ✅ Load SVGA animations from assets and network URLs.
- ✅ Implemented SVGAAnimationController for playback control.
- ✅ Dynamic entity support (text & images).
- ✅ Optimized performance for smooth animations.