FLUTTER ECOSYSTEM

hucancode/water_bottle

आपके Flutter प्रोजेक्ट के लिए एक सुंदर पानी की बोतल

पानी का बोतल प्रोजेक्ट कवर
Stars
6
Forks
2
अंतिम पुश (UTC)
26 जन॰ 2026
प्रोजेक्ट स्थिति
सक्रिय
Bang Nguyen Huu GitHub avatar
भाषाएँDartC++CMakeSwiftCHTMLKotlinObjective-C

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 4 आइटम
  • flutter{"sdk":"flutter"}
  • path_parsing^1.1.0
  • flutter_testडेवलपमेंट{"sdk":"flutter"}
  • flutter_lintsडेवलपमेंट^6.0.0

मूल 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