constellation_particles 1.0.0 copy "constellation_particles: ^1.0.0" to clipboard
constellation_particles: ^1.0.0 copied to clipboard

A pointer-reactive constellation particle background for Flutter. Particles drift, repel from the cursor, and link with fading lines. Near-O(n) spatial grid, zero runtime deps.

example/lib/main.dart

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

void main() => runApp(const _ExampleApp());

class _ExampleApp extends StatelessWidget {
  const _ExampleApp();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData.dark(useMaterial3: true),
      home: Scaffold(
        backgroundColor: const Color(0xFF0A0E14),
        body: Stack(
          children: [
            const Positioned.fill(
              child: ConstellationParticles(
                particleCount: 140,
                color: Color(0xFF64FFDA),
                speed: 1.1,
              ),
            ),
            Center(
              child: Text(
                'move your cursor',
                style: Theme.of(context)
                    .textTheme
                    .titleMedium
                    ?.copyWith(color: Colors.white24, letterSpacing: 2),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
160
points
598
downloads
screenshot

Documentation

API reference

Publisher

verified publisherdeveloperyusuf.com

Weekly Downloads

A pointer-reactive constellation particle background for Flutter. Particles drift, repel from the cursor, and link with fading lines. Near-O(n) spatial grid, zero runtime deps.

Repository (GitHub)
View/report issues

Topics

#animation #particles #canvas #background #custompainter

License

MIT (license)

Dependencies

flutter

More

Packages that depend on constellation_particles