particular 0.0.1 particular: ^0.0.1 copied to clipboard
The Particular is a high performance particle effects flutter widget.
Overview #
The Particular is a high performance particle effects flutter widget that can configure bot with config.json
and programatically.
Samples: #
Meteor | Galaxy | Snow | Firework |
---|---|---|---|
Let's get started #
First of all, you need to add the particular
in your project. In order to do that, follow this guide.
Easy to use: just write a simple onTick
handler to manage a list of particles.
Architected to be highly extensible. Utilizes CustomPainter
and drawAtlas
to
offer exceptional performance.
// Add controller to change particle
final _particleController = ParticularController();
...
_particleController.initialize(
texture: frameInfo.image,
configs: configsMap,
);
// Add Particular widget in your widget three
Particular(
width: 600,
height: 600,
color: Colors.black,
controller: _particleController,
)
Also you can update your particle with update controller.
_particleController.update(
maxParticles: 100,
duration:1.5,
lifespan:1.2,
angle:30,
speed:100,
);
Then you need to read the docs. Start from here.