Giter VIP home page Giter VIP logo

jaechon-yu / particles_flutter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rajajain08/particles_flutter

0.0 0.0 0.0 371.71 MB

Easy way to add particles animation in Flutter project.

Home Page: https://particles-flutter.rajajain08.vercel.app/

License: BSD 2-Clause "Simplified" License

C++ 6.40% Objective-C 0.05% Kotlin 0.17% Dart 81.21% Swift 3.29% Makefile 5.43% HTML 0.26% Batchfile 3.18%

particles_flutter's Introduction

Flutter Particles

Buy Me A Coffee

Easy way to add particles animation in Flutter project.

Getting Started

Note: Make sure your Flutter environment is setup.

Installation

In the command terminal, run the following commands:

$ git clone https://github.com/rajajain08/particles_flutter.git
For Web
$ cd particles_flutter/particles_web/
$ flutter packages pub global run webdev serve
Checkout web here.
For Desktop(eg:macOs)
$ cd particles_flutter/particles_web/
$ flutter run -d macOS
For iOS and Android: Follow this readme.

How to use

You can use CircularParticle widget and change any of it's value according to your needs.

CircularParticle(
          key: UniqueKey(),
          awayRadius: 80,
          numberOfParticles: 200,
          speedOfParticles: 1,
          height: screenHeight,
          width: screenWidth,
          onTapAnimation: true,
          particleColor: Colors.white.withAlpha(150),
          awayAnimationDuration: Duration(milliseconds: 600),
          maxParticleSize: 8,
          isRandSize: true,
          isRandomColor: true,
          randColorList: [
            Colors.red.withAlpha(210),
            Colors.white.withAlpha(210),
            Colors.yellow.withAlpha(210),
            Colors.green.withAlpha(210)
          ],
          awayAnimationCurve: Curves.easeInOutBack,
          enableHover: true,
          hoverColor: Colors.white,
          hoverRadius: 90,
          connectDots: false, //not recommended
        ),

Contributions

Feel free to contribute to this project.

If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue.
If you fixed a bug or implemented a new feature, please send a pull request.

If you want to contact me, Please send me a short DM on Twitter.

particles_flutter's People

Contributors

br-programmer avatar rajajain08 avatar rajajain08geekyants avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.