mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-16 02:44:16 +08:00
Add animation to progress bar
This commit is contained in:
@@ -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,
|
||||
),
|
||||
]),
|
||||
|
||||
Reference in New Issue
Block a user