seasonal_decor 1.0.0 copy "seasonal_decor: ^1.0.0" to clipboard
seasonal_decor: ^1.0.0 copied to clipboard

Drop-in seasonal decorative overlays for Flutter apps with a built-in particle engine.

seasonal_decor #

Drop-in seasonal decorative overlays for Flutter apps. Ships with a lightweight CustomPainter + Ticker particle engine and ready-to-use presets for Ramadan, Eid, Christmas, New Year, Valentine, Halloween, and Sport Event.

Installation #

Add this to your pubspec.yaml:

dependencies:
  seasonal_decor: ^1.0.0

Then run:

flutter pub get

Or simply:

flutter pub add seasonal_decor

Quick Start #

SeasonalDecor(
  preset: SeasonalPreset.ramadan(),
  intensity: DecorIntensity.medium,
  child: const HomeScreen(),
);

Easy Usage #

Basic overlay:

SeasonalDecor(
  preset: SeasonalPreset.christmas(),
  child: const HomeScreen(),
);

Control intensity and opacity:

SeasonalDecor(
  preset: SeasonalPreset.eid(),
  intensity: DecorIntensity.high,
  opacity: 0.9,
  child: const HomeScreen(),
);

Timed playback with optional auto-repeat:

SeasonalDecor(
  preset: SeasonalPreset.sportEvent(),
  playDuration: const Duration(seconds: 8),
  repeatEvery: const Duration(minutes: 10),
  settleOnDisable: true,
  showBackdrop: true,
  child: const HomeScreen(),
);

Advanced Example #

SeasonalDecor(
  preset: SeasonalPreset.sportEvent(),
  playDuration: const Duration(seconds: 8),
  repeatEvery: const Duration(minutes: 10),
  settleOnDisable: true,
  showBackdrop: true,
  child: const HomeScreen(),
);

Options #

Option Type Default Description
child Widget required Widget below the overlay.
preset SeasonalPreset required Decorative preset to render.
enabled bool true Shows or hides the overlay.
intensity DecorIntensity medium Particle count, speed, spawn rate.
opacity double 1.0 Global overlay opacity (0.0 to 1.0).
respectReduceMotion bool true Honors MediaQuery.disableAnimations.
pauseWhenInactive bool true Pauses animation when app is inactive.
ignorePointer bool true Lets taps pass through the overlay.
playDuration Duration 5s How long the animation runs per cycle.
settleOnDisable bool true Let particles settle when stopping.
repeatEvery Duration? null Auto-replay after the given duration.
showBackdrop bool true Render decorative backdrops.
showBackdropWhenDisabled bool true Keep backdrops visible when disabled.

Notes:

  • Use playDuration: Duration.zero for continuous animation.

Option Details #

child The widget you want to decorate. The overlay is painted on top of this widget.

preset Pick a ready-made style like Ramadan, Eid, Christmas, New Year, Valentine, Halloween, or Sport Event. Presets include shapes, colors, and backdrops.

enabled Turn the overlay on or off. When false, particles stop rendering. Backdrops can still show if showBackdropWhenDisabled is true.

intensity Controls how many particles spawn and how fast they move. Use low for subtle effects, high for celebrations.

opacity Overall overlay opacity. Use lower values to keep UI readable.

respectReduceMotion If the system has Reduce Motion enabled, the overlay renders a static decoration instead of animating.

pauseWhenInactive Stops the animation when the app is paused or inactive to save resources.

ignorePointer If true, the overlay does not block touches. Your UI remains fully interactive.

playDuration How long each animation cycle runs. Use Duration.zero to keep it running continuously.

settleOnDisable When stopping, existing particles keep moving and fall out naturally instead of disappearing instantly.

repeatEvery Automatically replays the animation after the given time. Set to null to disable auto-repeat.

showBackdrop Show or hide decorative backdrops like crescents, trees, garlands, or stadium elements.

showBackdropWhenDisabled If enabled is false, this keeps the backdrop visible while particles remain hidden.

Presets #

  • Ramadan (classic, night)
  • Eid (classic) - fireworks rockets and bursts
  • Christmas (classic) - snow with tree/garland
  • New Year (fireworks, gold) - fireworks with confetti
  • Valentine (hearts, minimal) - floating hearts with sparkles
  • Halloween (spooky, pumpkin) - bats/pumpkins with moon
  • Sport Event (worldCup, teamColors) - trophy + celebration

Preset Previews #

Ramadan

[Ramadan]

Eid

[Eid]

Christmas

[Christmas]

Valentine

[Valentine]

Performance Notes #

  • Fixed-size particle pool with reuse.
  • Adaptive density scaling based on screen area.
  • RepaintBoundary isolates the overlay.
  • Optional pause on inactive lifecycle states.

Accessibility #

  • If respectReduceMotion is true and MediaQuery.disableAnimations is enabled, the overlay renders a static decoration instead of animating.

Supported Platforms #

  • Android
  • iOS
  • Web
  • Windows
  • macOS
  • Linux

Example #

See example/lib/main.dart for a full demo with presets and controls.

License #

MIT License. See LICENSE.

13
likes
0
points
426
downloads

Publisher

verified publishertamoura.me

Weekly Downloads

Drop-in seasonal decorative overlays for Flutter apps with a built-in particle engine.

Repository (GitHub)
View/report issues

Topics

#animations #ramadan #seasonal #overlay #celebration

License

unknown (license)

Dependencies

flutter

More

Packages that depend on seasonal_decor