v0.0.8water_bottle
此库向您的屏幕添加了一个瓶子小部件。您可以将其用作加载指示器、进度跟踪器,或任何适合您需求的测量工具。
42喜欢 30近 30 天下载150Pub 分数
AndroidiOSWebmacOSWindowsLinux
适用于您 Flutter 项目的精美水瓶
{"sdk":"flutter"}^1.1.0{"sdk":"flutter"}^6.0.0以下为英文项目原文快照,最新内容请访问 GitHub。
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.
Plain Sphere Triangle
Sphere bottle get reduced to a ball when aspect ratio smaller than 1
Responsive Sphere
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';
Build bottle widget
final plainBottleRef = GlobalKey<WaterBottleState>();
WaterBottle(
key: plainBottleRef,
waterColor: Colors.blue,
bottleColor: Colors.lightBlue,
capColor: Colors.blueGrey
)
Update widget
plainBottleRef.currentState?.waterLevel = 0.5;// 0.0~1.0
For more please refer /example folder
For more information, or contribution, please refer to the original github