Skip to content

BansookNam/live_background

Repository files navigation

Welcome to Live Background 👋

Version License: MIT Provide nice moving wall paper on your background.

title

This repository is inspired by miickel/flutter_particle_clock.

And the code of this repository is based on miickel/flutter_particle_clock

Install

Add live_background dependency on your pubspec.yaml file

live_background: ^{latest version}

Show Case

  1. Christmas

  1. Happy New Year

happy

  1. Change Particle Count
count.mp4
  1. Change Particle's velocity
velocity.mp4
  1. Change Particle's min/max size
size.mp4

Usage

  1. Add LiveBackgroundWidget() where you want
import 'package:live_background/live_background.dart';

Stack(children: [LiveBackgroundWidget(), AnyWidget()])
  1. You can use initial values to change the effect
//for example
LiveBackgroundWidget(
   palette: Palette(colors: [Colors.red, Colors.green]),
   velocityX: 2.5,
   velocityY: 0,
   particleMinSize: 10,
   particleMaxSize: 30,
   particleCount: 250,
   blurSigmaX: 3,
   blurSigmaY: 4.5,
   clipBoundary: true //default value is true
)
  1. You can change values dynamically using LiveBackgroundController.
 final liveBackgroundController = LiveBackgroundController();

LiveBackgroundWidget(
  controller: liveBackgroundController,
  palette: _palette,
)

liveBackgroundController.setParticleCount(400);
liveBackgroundController.setVelocity(2.0, 10.5);
liveBackgroundController.setParticleSize(10, 30);
liveBackgroundController.setPalette(Palette(colors: [Colors.yellow, Colors.white]))

Author

👤 Bansook Nam

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page. You can also take a look at the [contributing guide](Contributions, issues and feature requests are welcome.).

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2020 Bansook Nam.

This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator

About

Provide nice moving wall paper on your background.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published