Skip to content

Commit

Permalink
publish: v0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pdliuw committed Apr 15, 2020
1 parent 1bc3cee commit 5eaf581
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 18 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.3] - Update

* Update: document resource

## [0.1.2] - Dashboard

* Add: Dashboard progress
Expand Down
62 changes: 46 additions & 16 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -155,23 +154,52 @@ aai_progress: [![pub package](https://img.shields.io/pub/v/ai_progress.svg)](htt
});
},
),
Stack(
alignment: Alignment.center,
children: <Widget>[
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: <Widget>[
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: <Widget>[
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(),
Expand All @@ -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}%"),
Expand All @@ -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}%"),
Expand All @@ -225,7 +255,7 @@ aai_progress: [![pub package](https://img.shields.io/pub/v/ai_progress.svg)](htt
Spacer(),
],
),
//线性、步进样式的进度
Row(
children: [
Spacer(),
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.1"
version: "0.1.3"
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.2
version: 0.1.3
homepage: https://pdliuw.github.io/
repository: https://github.com/pdliuw/ai_progress

Expand Down

0 comments on commit 5eaf581

Please sign in to comment.