v0.0.8water_bottle
이 라이브러리는 화면에 병 위젯을 추가합니다. 로딩 인디케이터, 진행률 추적기 또는 필요에 따라 사용할 수 있는 다양한 측정 도구로 사용할 수 있습니다.
42좋아요 3030일 다운로드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