mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Add animation to progress bar
This commit is contained in:
@@ -85,11 +85,14 @@ class _TaskView extends State<TaskView> {
|
|||||||
child: Column(children: [
|
child: Column(children: [
|
||||||
_buildText(context),
|
_buildText(context),
|
||||||
LinearPercentIndicator(
|
LinearPercentIndicator(
|
||||||
|
animation: true,
|
||||||
|
animateFromLastPercent: true,
|
||||||
progressColor: Colors.green,
|
progressColor: Colors.green,
|
||||||
lineHeight: 20.0,
|
lineHeight: 20.0,
|
||||||
barRadius: const Radius.circular(10),
|
barRadius: const Radius.circular(10),
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
center: Text(percentText),
|
center:
|
||||||
|
Text(percentText, style: const TextStyle(color: Colors.black)),
|
||||||
percent: percent,
|
percent: percent,
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
|
|||||||
Reference in New Issue
Block a user