snowfall_or_anythings 0.0.7
snowfall_or_anythings: ^0.0.7 copied to clipboard
A Flutter package to create snowfall or any kind of falling widgets animations.
Changelog #
All notable changes to this project will be documented in this file.
0.0.7 #
Added #
- New particle types for greater versatility:
ParticleType.star- 5-pointed star particles with rotationParticleType.heart- Heart-shaped particles using Bézier curvesParticleType.leaf- Realistic leaf particles with central and side veinsParticleType.raindrop- Teardrop/raindrop-shaped particles
- New painters:
StarParticlePainter,HeartParticlePainter,LeafParticlePainter,RaindropParticlePainter - New example page demonstrating all particle types with color picker and size slider
Fixed #
- Bug fix:
particleColornow works correctly for snowflake particles (was hardcoded to white)
Changed #
- Refactored
SnowflakeParticlePainterto use particle color instead of hardcoded color - Updated particle type selection to use Dart 3 switch expression for cleaner code
- Added
hashCodeand==operators toParticleclass for proper comparison - Unified
ParticlePainterandCircularParticlePainter-ParticlePainternow extendsCircularParticlePainterto eliminate code duplication
Improved #
- Enhanced
LeafParticlePainterwith more realistic leaf shape using cubic Bézier curves - Added central vein and side veins to leaf particles for natural appearance
- Proportional vein thickness based on particle size
Performance #
- Optimized
shouldRepaintinCircularParticlePainterandSnowflakeParticlePainterwith deep comparison using hashCode, reducing unnecessary repaints
0.0.6 #
Fixed #
- Applied dart format to all library files for pub.dev compliance
- Updated example dependencies (flutter_lints to ^6.0.0)
0.0.5 #
Added #
- Frame rate control via
frameRateMsparameter for performance tuning - Comprehensive inline documentation for all public APIs
- Proper CHANGELOG documentation
Fixed #
- Particles now initialize with correct screen dimensions instead of hardcoded 1000px
- Removed duplicate
update()calls in painters (~50% performance improvement) - Particles properly adapt to
LayoutBuilderconstraints
Changed #
- Enhanced documentation with dartdoc comments throughout the codebase
Performance #
- Significant performance improvement by eliminating redundant particle updates per frame
- Particles now initialize efficiently with actual screen dimensions
