vitality 2.1.0 vitality: ^2.1.0 copied to clipboard
Add captivating live animations to your Flutter app effortlessly with Vitality!
- vitality package is very easy to use you can understand its usage in the code below :
Vitality.randomly(
background: Colors.black,
maxOpacity: 0.8,
minOpacity: 0.3,
itemsCount: 80,
enableXMovements: false,
whenOutOfScreenMode: WhenOutOfScreenMode.Teleport,
maxSpeed: 1.5,
maxSize: 30,
minSpeed: 0.5,
randomItemsColors: [Colors.yellowAccent, Colors.white],
randomItemsBehaviours: [
ItemBehaviour(shape: ShapeType.Icon, icon: Icons.star),
ItemBehaviour(shape: ShapeType.Icon, icon: Icons.star_border),
ItemBehaviour(shape: ShapeType.StrokeCircle),
],
)