flutterfall 1.0.0
flutterfall: ^1.0.0 copied to clipboard
A Flutter package to create falling effects using custom images.
example/example.dart
import 'package:flutter/material.dart';
import 'package:flutterfall/flutterfall.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Container(
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height,
color: Colors.black,
child: const Stack(
children: [
Positioned.fill(
child: FlutterFall(
isRunning: true,
totalObjects: 100,
speed: 0.05,
particleImage: ['assets/snowflake.png'],
particleSize: 20,
rotationSpeed: 0.05,
windSpeed: 1,
))
],
),
),
),
);
}
}