winter_theme 1.1.0
winter_theme: ^1.1.0 copied to clipboard
Snow effects for Flutter. Snowfall makes it snow over any widget, and SnowCap lets snow build up on its top edge, drape over rounded corners and break off the sides.
1.1.0 #
- New
SnowCapwidget: snow that settles on the top edge of any widget. It starts bare, forms patches that join into one heap, drapes over rounded corners, and breaks off at the corners. Pieces tip over, fall and crumble, and the broken spots refill. - Options for build-up (
thickness,settleTime,startSettled,accumulating), shedding (shedding,chunkSize,shedRate,fallSpeed,fallDistance) and looks (color,shadeColor,overlap,borderRadius,seed). - Extra customization:
texture(anyImageProvider, including cached network images),backgroundPainterandforegroundPainterfor custom painters, andoverlayfor any widget, such as a Lottie animation. - One ticker that pauses with
TickerMode, stops when nothing can move, respects reduced motion, and keeps the heap across rebuilds and resizes. - The example app has a SnowCap demo screen (snowflake button in the app bar).
1.0.1 #
- Much faster rendering: every flake is drawn from a cached sprite sheet in a
single
drawRawAtlascall, instead of one draw (and a blur filter) per flake. Smoother on low-end devices, with no per-frame allocations. - Sprites are rendered at the screen's pixel density so crystals stay crisp.
- The example app shows the
Snowfall(...)code for the current settings, with a copy button.
1.0.0 #
- Initial release.
Snowfallwidget: wrap any widget to make it snow over (or behind) it.- Ice crystals mixed with soft round flakes, with a configurable mix.
- Steady wind plus rolling gusts.
- Flakes fade in and out at the top and bottom edges.
- Custom colors and palettes, custom flake outlines, size, speed, sway and spin controls.
- Position controls: padding, alignment, width and height factors, and a foreground or background layer.
