particles_fly 0.0.9 copy "particles_fly: ^0.0.9" to clipboard
particles_fly: ^0.0.9 copied to clipboard

A package that provides an easy way to add particles js in flutter project.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Particles Fly Demo',
      home: HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    final size = MediaQuery.of(context).size;
    return Scaffold(
      body: Center(
        child: ParticlesFly(
          height: size.height,
          width: size.width,
          connectDots: true,
          numberOfParticles: 100,
        ),
      ),
    );
  }
}
47
likes
160
pub points
84%
popularity

Publisher

verified publisherbziyar.dev

A package that provides an easy way to add particles js in flutter project.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on particles_fly