particles_network 1.5.9 copy "particles_network: ^1.5.9" to clipboard
particles_network: ^1.5.9 copied to clipboard

A performant and customizable interactive particle network widget for Flutter. Ideal for background animations, landing pages, and visual effects.

example/main.dart

import 'package:flutter/material.dart';
import 'package:particles_network/particles_network.dart';

void main() {
  runApp(const MyApp());
}

/// Example app demonstrating the usage of ParticleNetwork widget.
class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.black,
        body: ParticleNetwork(
          touchActivation: true, // to Activate touch
          particleCount: 50, // Number of particles
          maxSpeed: 0.5, // Maximum particle speed
          maxSize: 3.5, // Maximum particle size
          lineDistance: 200, // Maximum distance for connecting lines
          particleColor: Colors.white,
          lineColor: Colors.greenAccent,
          touchColor: Colors.amber,
        ),
      ),
    );
  }
}
42
likes
0
points
232
downloads

Publisher

unverified uploader

Weekly Downloads

A performant and customizable interactive particle network widget for Flutter. Ideal for background animations, landing pages, and visual effects.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on particles_network