From 91393ffc47b0498d22a698c15b75d3ead949d732 Mon Sep 17 00:00:00 2001 From: Air Date: Thu, 16 Apr 2020 14:11:28 +0800 Subject: [PATCH] publish: v0.1.4;add: step progress support round cap style --- CHANGELOG.md | 4 ++++ example/README.md | 40 ++++++++++++++++++++++++++++++++++------ example/pubspec.lock | 2 +- pubspec.yaml | 2 +- 4 files changed, 40 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c6fe73..9d2adab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [0.1.4] - Add + +* Add: Step progress round cap style + ## [0.1.3] - Update * Update: document resource diff --git a/example/README.md b/example/README.md index 9c640c1..bb42b03 100644 --- a/example/README.md +++ b/example/README.md @@ -285,7 +285,7 @@ aai_progress: [![pub package](https://img.shields.io/pub/v/ai_progress.svg)](htt children: [ Container( width: 90, - height: 50, + height: 10, padding: EdgeInsets.all(0), child: AirStepStateProgressIndicator( size: Size(150, 150), @@ -296,6 +296,7 @@ aai_progress: [![pub package](https://img.shields.io/pub/v/ai_progress.svg)](htt .transform(_segmentValue / 10), pathStrokeWidth: 10.0, valueStrokeWidth: 10.0, + roundCap: true, ), ), Text("${_segmentValue / 10 * 100}%"), @@ -304,14 +305,16 @@ aai_progress: [![pub package](https://img.shields.io/pub/v/ai_progress.svg)](htt Spacer(), ], ), - Row( + //Step progress round and square cap + Column( + crossAxisAlignment: CrossAxisAlignment.center, children: [ - Spacer(), Row( + mainAxisAlignment: MainAxisAlignment.center, children: [ Container( - width: 250, - height: 50, + width: 220, + height: 30, padding: EdgeInsets.all(0), child: AirStepStateProgressIndicator( size: Size(150, 150), @@ -322,14 +325,39 @@ aai_progress: [![pub package](https://img.shields.io/pub/v/ai_progress.svg)](htt .transform(_segmentValue / 10), pathStrokeWidth: 30.0, valueStrokeWidth: 30.0, + roundCap: false, + ), + ), + Text("${_segmentValue / 10 * 100}%"), + ], + ), + Divider(), + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Container( + width: 220, + height: 30, + padding: EdgeInsets.all(0), + child: AirStepStateProgressIndicator( + size: Size(150, 150), + stepCount: _segmentChildren.length, + stepValue: _segmentValue, + valueColor: + ColorTween(begin: Colors.grey, end: Colors.blue) + .transform(_segmentValue / 10), + pathStrokeWidth: 30.0, + valueStrokeWidth: 30.0, + roundCap: true, ), ), Text("${_segmentValue / 10 * 100}%"), ], ), - Spacer(), ], ), + Divider(), + //linear square progress Row( mainAxisAlignment: MainAxisAlignment.center, children: [ diff --git a/example/pubspec.lock b/example/pubspec.lock index 9eb2335..d68fe89 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -7,7 +7,7 @@ packages: path: ".." relative: true source: path - version: "0.1.3" + version: "0.1.4" archive: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 25f2be3..f18a01f 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.3 +version: 0.1.4 homepage: https://pdliuw.github.io/ repository: https://github.com/pdliuw/ai_progress