FLUTTER ECOSYSTEM

hucancode/water_bottle

Flutter プロジェクト用の美しい水筒

水筒 のプロジェクト画像
Stars
6
Forks
2
最終プッシュ(UTC)
2026/01/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