Skip to content

Commit

Permalink
Add animation to progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
lifegpc committed May 24, 2024
1 parent 4237de5 commit 9ea5a80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/components/task.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,14 @@ class _TaskView extends State<TaskView> {
child: Column(children: [
_buildText(context),
LinearPercentIndicator(
animation: true,
animateFromLastPercent: true,
progressColor: Colors.green,
lineHeight: 20.0,
barRadius: const Radius.circular(10),
padding: EdgeInsets.zero,
center: Text(percentText),
center:
Text(percentText, style: const TextStyle(color: Colors.black)),
percent: percent,
),
]),
Expand Down

0 comments on commit 9ea5a80

Please sign in to comment.