Skip to content

Commit

Permalink
publish: v0.1.4;add: step progress support round cap style
Browse files Browse the repository at this point in the history
  • Loading branch information
pdliuw committed Apr 16, 2020
1 parent 2b126cb commit 91393ff
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.1.4] - Add

* Add: Step progress round cap style

## [0.1.3] - Update

* Update: document resource
Expand Down
40 changes: 34 additions & 6 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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}%"),
Expand All @@ -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),
Expand All @@ -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: <Widget>[
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.1.3"
version: "0.1.4"
archive:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 91393ff

Please sign in to comment.