live_background 0.0.1 live_background: ^0.0.1 copied to clipboard
Provide nice moving particle bokeh effect wall paper on your background.
Welcome to Live Background 👋 #
Provide nice moving wall paper on your background.
Install #
Add nav dependency on your pubspec.yaml file
live_background: ^{latest version}
Usage #
- Add LiveBackgroundWidget() Where you want
import 'package:live_background/live_background.dart';
Stack(children: [LiveBackgroundWidget(), AnyWidget()])
- 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,
)
- 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
- Website: https://github.com/bansooknam
- Github: @bansooknam
🤝 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