From 5eaf581ab77778076377e523cd087c7da1ea1d05 Mon Sep 17 00:00:00 2001 From: Air Date: Wed, 15 Apr 2020 12:14:13 +0800 Subject: [PATCH] publish: v0.1.3 --- CHANGELOG.md | 4 +++ example/README.md | 62 ++++++++++++++++++++++++++++++++------------ example/pubspec.lock | 2 +- pubspec.yaml | 2 +- 4 files changed, 52 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 978695a..7c6fe73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [0.1.3] - Update + +* Update: document resource + ## [0.1.2] - Dashboard * Add: Dashboard progress diff --git a/example/README.md b/example/README.md index 530a022..9c640c1 100644 --- a/example/README.md +++ b/example/README.md @@ -18,7 +18,6 @@ aai_progress: [![pub package](https://img.shields.io/pub/v/ai_progress.svg)](htt ## Code ``` - import 'dart:ui'; import 'package:ai_progress/ai_progress.dart'; @@ -155,23 +154,52 @@ aai_progress: [![pub package](https://img.shields.io/pub/v/ai_progress.svg)](htt }); }, ), - Stack( - alignment: Alignment.center, - children: [ - Container( - width: 150, - height: 150, - padding: EdgeInsets.all(5), - child: CircularProgressIndicator( - value: _segmentValue / 10, - strokeWidth: 10.0, - valueColor: _colorTween, - ), + Row( + children: [ + Spacer(), + Stack( + alignment: Alignment.center, + children: [ + Container( + width: 150, + height: 150, + padding: EdgeInsets.all(5), + child: CircularProgressIndicator( + value: _segmentValue / 10, + strokeWidth: 10.0, + valueColor: _colorTween, + ), + ), + Text("${_segmentValue / 10 * 100}%"), + ], ), - Text("${_segmentValue / 10 * 100}%"), + Spacer(), + Stack( + alignment: Alignment.center, + children: [ + Container( + width: 150, + height: 150, + padding: EdgeInsets.all(5), + child: AirDashboardStateProgressIndicator( + size: Size(150, 150), + value: _segmentValue / 10 * 100, //1~100 + valueColor: + ColorTween(begin: Colors.grey, end: Colors.blue) + .transform(_segmentValue / 10), + pathStrokeWidth: 10, + valueStrokeWidth: 10, + gapDegree: 60, + roundCap: true, + ), + ), + Text("${_segmentValue / 10 * 100}%"), + ], + ), + Spacer(), ], ), - + //圆环、扇形样式的进度 Row( children: [ Spacer(), @@ -193,6 +221,7 @@ aai_progress: [![pub package](https://img.shields.io/pub/v/ai_progress.svg)](htt valueStrokeWidth: 10.0, useCenter: false, filled: false, + roundCap: true, ), ), Text("${_segmentValue / 10 * 100}%"), @@ -217,6 +246,7 @@ aai_progress: [![pub package](https://img.shields.io/pub/v/ai_progress.svg)](htt valueStrokeWidth: 10.0, useCenter: true, filled: true, + roundCap: true, ), ), Text("${_segmentValue / 10 * 100}%"), @@ -225,7 +255,7 @@ aai_progress: [![pub package](https://img.shields.io/pub/v/ai_progress.svg)](htt Spacer(), ], ), - + //线性、步进样式的进度 Row( children: [ Spacer(), diff --git a/example/pubspec.lock b/example/pubspec.lock index 5c17343..9eb2335 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -7,7 +7,7 @@ packages: path: ".." relative: true source: path - version: "0.1.1" + version: "0.1.3" archive: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 17e9c3e..25f2be3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: ai_progress description: A new multiple style progress include of circular、linear and step style progress indicator. -version: 0.1.2 +version: 0.1.3 homepage: https://pdliuw.github.io/ repository: https://github.com/pdliuw/ai_progress