particles_network 1.8.0 copy "particles_network: ^1.8.0" to clipboard
particles_network: ^1.8.0 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(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        backgroundColor: Colors.black,
        body: ParticleNetwork(
          touchActivation: true, // to Activate touch
          particleCount: 100, // Number of particles
          maxSpeed: 0.5, // Maximum particle speed
          maxSize: 3.5, // Maximum particle size
          lineDistance: 100, // Maximum distance for connecting lines
          particleColor: Colors.white,
          lineColor: Colors.greenAccent,
          touchColor: Colors.amber,
        ),
      ),
    );
  }
}
40
likes
160
points
253
downloads
screenshot

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

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on particles_network