FLUTTER ECOSYSTEM

hucancode/water_bottle

適用於您 Flutter 項目的精美水瓶

水瓶 專案封面
Stars
6
Forks
2
最近推送(UTC)
2026年1月26日
專案狀態
未封存
Bang Nguyen Huu GitHub avatar
語言DartC++CMakeSwiftCHTMLKotlinObjective-C

此儲存庫發佈的套件

使用的依賴

依賴清單 4 項

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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.

Plain Sphere Triangle

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

Responsive Sphere

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';

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

Additional information

For more information, or contribution, please refer to the original github