particular 0.0.5 particular: ^0.0.5 copied to clipboard
The Particular is a high performance particle effects flutter widget.
Enhance your app or game visuals with this high-performance Flutter particle system widget. Utilize JSON or programmatic configuration, seamlessly integrating with popular particle editors for effortless customization.
Whether you're a designer or developer, Particular empowers you to bring your creative visions with ease.
- Some Presets: #
- Installation #
Add Particular
to your pubspec.yaml file:
For detailed installation instructions, refer to the installation guide on pub.dev.
- Configurate your particle #
You have two options for configuring your particles:
- Using Editors:
Generate particle configurations using popular particle editors such as Particle 2dx Editor or Particle Designer. (We're working on dedicated editor as soon as possible!) - Programmatic Configuration:
Manually configure your particle controller in code. Refer to the following steps for more details.
- Getting Started with Coding #
Follow these steps to integrate the particle system into your Flutter app:
I. Initialize the Particle Controller in initState
:
final controller = ParticularController();
...
@override
void initState() {
controller.initialize(
texture: frameInfo.image,
configs: configsMap, // Remove in programmatic configuration case
);
super.initState();
}
II. Add the Particular
Widget in Your Widget Three:
Particular(controller: controller)
III. Live Update Particle System:
controller.update(
maxParticles: 100,
lifespan:1.2,
angle:30,
speed:100,
);
This revised README provides clear installation instructions, options for configuring particles, and steps for integrating and customizing the particle system in your Flutter app. If you have any questions or need further assistance, don't hesitate to ask!