flutter_moving_background 0.2.0
flutter_moving_background: ^0.2.0 copied to clipboard
A Flutter Package to create beautiful and animated backgrounds,such as gradients ,circular forms and particles
0.2.0 - 2026-06-18 #
- New Presets: Added pre-configured named constructors for
MovingBackground(MovingBackground.sunset(),MovingBackground.aurora(),MovingBackground.cyberpunk()) and a builder-based theme-awareMovingBackground.themed(context)constructor. - New Background Patterns:
- Added
ConstellationBackground: A particle web system connecting nearby floating nodes with hover/touch interactive attraction. - Added
WaveBackground: Soothing, layered flowing sine-waves with parallax speeds.
- Added
- Significant Performance Optimizations:
- Zero-allocation paint loops: Painters now cache and reuse
PaintandPathobjects across frame calls instead of allocating them 60+ times per second. - Shader Caching in Rain: Drastically reduced GPU/CPU jank in
RainBackgroundby caching linear gradient shaders per-layer/color rather than compiling them per-drop on every frame.
- Zero-allocation paint loops: Painters now cache and reuse
- API Cleanups:
- Deprecated
CustomRainin favor of a single consolidatedRainBackground. - Added
backgroundColorsupport forBubbleBackgroundandRainBackground. - Upgraded code to use non-deprecated Flutter APIs (
Color.toARGB32(),Color.withValues()).
- Deprecated
0.1.0 - 2026-01-30 #
- Major Performance Overhaul: Refactored
MovingBackgroundto use a singleTickerandCustomPainter. This significantly reduces CPU/GPU usage and provides much smoother animations. - New Animation Types: Added
pulse,scale, andmoveanimation types toMovingBackground. - New Components:
- Added
BubbleBackground: A high-performance bouncing bubbles effect. - Added
RainBackground: A parallax rain effect.
- Added
- Pause/Resume: Added
isPausedproperty to all background components. - Improved API:
MovingCircleis now a lightweight data class. - Better Randomness: Improved the way circles move to random positions for a more natural feel.
- Bug Fixes: Fixed issues with animation stuttering and memory leaks.
0.0.5 - 2024-02-18 #
- Improved mixed animation type, fade and Transition
- Upgrade dart and Flutter SDKs
0.0.4 - 2024-02-18 #
- Add mixed animation type, fade and Transition
- Upgrade dart and Flutter SDKs
0.0.3 - 2024-01-22 #
- Follow Dart lint rules
- Refact description and documentation
- add example gif
0.0.2 - 2024-01-22 #
- Upgrade dart sdk
- Improved readme
- Improved Docs
0.0.1 - 2024-01-20 #
- Add Circles Gradient Background.