https://github.com/pgiacomo69/snowfall
Flutter package for generating Snowfall effect
https://github.com/pgiacomo69/snowfall
flutter snowfall snowflakes snowflakes-falling widget
Last synced: 4 months ago
JSON representation
Flutter package for generating Snowfall effect
- Host: GitHub
- URL: https://github.com/pgiacomo69/snowfall
- Owner: pgiacomo69
- License: gpl-3.0
- Created: 2021-12-13T10:28:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-21T12:29:17.000Z (almost 3 years ago)
- Last Synced: 2025-10-22T23:39:33.042Z (8 months ago)
- Topics: flutter, snowfall, snowflakes, snowflakes-falling, widget
- Language: Dart
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## Features
A Flutter package written to add a snowfall effect to your widgets.
## Getting started
Add this library to pubspec.yaml
Import it where you want to use it:
```dart
import 'package:snowfall/snowfall.dart';
```
## Usage
Enclose your widget with SnowfallWidget:
```dart
Scaffold(
body: SnowfallWidget(child: Center(
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
child: YOURWIDGET
)
```
### Optional named arguments:
```dart
Color color // Defaults to White color;
int numberOfSnowflakes // Defaults to 30
int alpha // defaults to 180
)
```
## Additional information
This project is based on [Constantin Stan's work](https://medium.com/flutter-community/fluttering-snowflakes-1cf011b0d38d).
Here is the [original project](https://github.com/Constans/fluttering-dart)