Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
flyou committed Oct 26, 2018
1 parent a5d3c80 commit 14ce822
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/CircleProgressBar.dart
Expand Up @@ -98,7 +98,7 @@ class CircleProgressBarState extends State<CircleProgressBar>
size: Size(widget.size, widget.size),
child: Center(
child: Text(
"${widget.textPercent ? "$percent%" : "${_doubleAnimation.value.round()}/${widget.maxNumber.round()}"}",
"${_doubleAnimation.value.round() == widget.maxNumber ? "完成" : "${widget.textPercent ? "$percent%" : "${_doubleAnimation.value.round()}/${widget.maxNumber.round()}"}"}",
style: widget.textStyle == null
? TextStyle(color: Colors.black, fontSize: 20)
: widget.textStyle),
Expand Down
8 changes: 4 additions & 4 deletions lib/CircleProgressBarTest.dart
Expand Up @@ -17,18 +17,18 @@ import 'package:flutter/material.dart';
void main() {
runApp(new MaterialApp(
home: AdCounterViewTestDemo(),
home: CircleProgressBarDemo(),
));
}

class AdCounterViewTestDemo extends StatefulWidget {
class CircleProgressBarDemo extends StatefulWidget {
@override
State<StatefulWidget> createState() {
return AdCounterViewTestDemoState();
return CircleProgressBarDemoState();
}
}

class AdCounterViewTestDemoState extends State<AdCounterViewTestDemo> {
class CircleProgressBarDemoState extends State<CircleProgressBarDemo> {
@override
Widget build(BuildContext context) {
return Scaffold(
Expand Down

0 comments on commit 14ce822

Please sign in to comment.