water_bottle

Creator: coderz1093

Last updated:

0 purchases

water_bottle Image
water_bottle Images

Languages

Categories

Add to Cart

Description:

water bottle

Water Bottle #
Features #
This library add a bottle widget to your screen. You can use it as a loading indicator, a progress tracker, or any kind of measurement suits your needs.



Sphere bottle get reduced to a ball when aspect ratio smaller than 1

Usage #
To use this library, add water_bottle as a dependency in your pubspec.yaml file.
Import it where you need
import 'package:water_bottle/water_bottle.dart';
copied to clipboard
Build bottle widget
final plainBottleRef = GlobalKey<WaterBottleState>();
WaterBottle(
key: plainBottleRef,
waterColor: Colors.blue,
bottleColor: Colors.lightBlue,
capColor: Colors.blueGrey
)
copied to clipboard
Update widget
plainBottleRef.currentState?.waterLevel = 0.5;// 0.0~1.0
copied to clipboard
For more please refer /example folder
Additional information #
For more information, or contribution, please refer to the original github

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.