sakura_blizzard 7.0.0
sakura_blizzard: ^7.0.0 copied to clipboard
This is a 3D effect related to flower petals in Flutter. Cherry blossom petals are included as standard.
7.0.0 #
Breaking changes #
ElementsFlowView.updateObjPositionnow returnsbool(true if the object's position was reset to the top) instead ofvoid.Sp3dPhysics.velocityis now read only once per physics step. Previously it was read twice per step, so custom physics classes that update internal state inside thevelocitygetter will now advance at half the previous rate. To keep the previous motion, advance your internal state by two units per call.- The physics step now runs at exactly the specified
fps. Previously the timer interval was truncated to whole milliseconds, so objects moved slightly faster than intended (e.g. about 4% faster at 60 fps, about 16% faster at 144 fps).
Improvements #
- Replaced
Timer.periodicwith a vsync-synchronizedTickerand a fixed-timestep accumulator. Animation now pauses while the widget is not visible (e.g. when the app is in the background), and accumulated time is clamped to avoid sudden jumps after a stall. - Added render interpolation between physics steps, so objects move smoothly on every frame even when the display refresh rate differs from
fps(e.g. 60 fps on a 120/144 Hz display). Position resets are not interpolated. - Fixed a possible null check error that occurred when a physics class returned null from
velocityon the second of the two reads in the same step. - Fixed
BasicDropPhysicsandRainDropPhysicsnot receiving thefpsvalue from the built-in views, which caused them to move at the wrong speed whenfpswas not 60. PopPhysics,DirectionalPopPhysics,ConfettiHirahiraPhysicsandDirectionalConfettiHirahiraPhysicsnow apply gravity and damping based on elapsed time, so their motion no longer changes withfps. The default look at 60 fps is unchanged.ConfettiHirahiraPhysicsandDirectionalConfettiHirahiraPhysicsnow measuremaxBurstFramesandtransitionFramesby elapsed time in units of 1/120 second, independent offps. The documentation has been corrected accordingly (the default 120 is 1 second, not 2 seconds).- Hirahira motion now wraps its swing cycle continuously, without a small jump at the end of each cycle.
6.1.3 #
- Updated
simple_3d_rendererdependency to ^24.0.0.
6.1.2 #
- Updated
simple_3d_rendererdependency to ^23.0.3 to resolve internal issues.
6.1.1 #
- Updated Example and README files.
6.1.0 #
- Added AssetImageFallView: a variant of ImageFallView that loads images from asset paths internally.
- Added CustomImageFallView: a variant of ImageFallView with factory functions for physics, size, position, and image index.
- Added CustomFallView: a general-purpose falling view that accepts any Sp3dObj via a factory function.
- Added PopPhysics: objects bursting outward in all directions.
- Added DirectionalPopPhysics: objects bursting in a specified direction.
- Added ConfettiHirahiraPhysics: objects bursting in all directions, then transitioning smoothly to hirahira falling.
- Added DirectionalConfettiHirahiraPhysics: objects bursting in a specified direction, then transitioning smoothly to hirahira falling.
- Added showIndicatorOnLoading and enablePositionReset parameters to ElementsFlowView, which are also propagated to all view widgets.
- Partially addressed issue 2: asset loading is now handled internally via AssetImageFallView.
6.0.5 #
- Adjustments following updates in the base library (no significant behavior changes).
6.0.4 #
- Updates associated with base library updates (no significant behavior change).
6.0.3 #
- Updates associated with base library updates.
- Minor internal refactoring without API changes.
6.0.2 #
- Updates associated with base library updates.
6.0.1 #
- Updated about issue 12 in simple_3d_renderer.
- This is a fix for a mismatch between the flutter version this package requests and the actual flutter version required.
6.0.0 #
- Updates associated with base library updates.
5.0.0 #
- Updates associated with base library updates.
4.0.1 #
- Updates associated with base library updates.
4.0.0 #
- Updates associated with base library updates.
3.2.0 #
- Updates associated with base library updates.
3.1.5 #
- Updates associated with base library updates.
3.1.4 #
- Implemented additional fixes for version 3.1.3.
3.1.3 #
- Fixed reported issue 3. This fix adds exception handling when a widget is destroyed while loading an asset.
3.1.2 #
- Updates associated with base library updates.
3.1.1 #
- Updates associated with base library updates.
3.1.0 #
- Fixed a bug where the image was flipped front and back in ImageFallView.
- Added RainFallView.
- Added RainDropPhysics.
3.0.1 #
- Updated example.
3.0.0 #
- Fixed due to bug fixes in base library. What is affected is ImageFallView.
- The processing of UtilImageTileCreator has been made lighter.
2.1.0 #
- Bug fixes associated with base library updates.
- Added ImageFallView, which allows you to easily drop image files.
- Added SnowFallView, which makes simple snow fall.
- Added BasicDropPhysics to simply drop objects.
- Unique Sp3dPhysics now available in multiple views.
2.0.1 #
- README.md has been updated.
2.0.0 #
- HirahiraDropPhysics has been improved to be easier to use even when the target is a smartphone.
1.0.0 #
- README.md has been updated. Added sample images etc.
0.0.1 #
- Initial release.