mirror of
https://github.com/localsend/localsend.git
synced 2026-08-07 07:14:52 +00:00
Provided Animation for Progress Bar (#2067)
This commit is contained in:
@@ -432,9 +432,16 @@ class _ProgressPageState extends State<ProgressPage> with Refena {
|
||||
style: const TextStyle(fontSize: 20),
|
||||
),
|
||||
const SizedBox(height: 5),
|
||||
CustomProgressBar(
|
||||
progress: _totalBytes == 0 ? 0 : currBytes / _totalBytes,
|
||||
borderRadius: 5,
|
||||
TweenAnimationBuilder<double>(
|
||||
tween: Tween<double>(begin:0, end:_totalBytes == 0 ? 0 : currBytes / _totalBytes),
|
||||
duration: Duration(seconds: 1),
|
||||
curve: Curves.easeOut,
|
||||
builder: (context, value, child) {
|
||||
return CustomProgressBar(
|
||||
progress: value,
|
||||
borderRadius: 5,
|
||||
);
|
||||
},
|
||||
),
|
||||
AnimatedCrossFade(
|
||||
crossFadeState: _advanced ? CrossFadeState.showSecond : CrossFadeState.showFirst,
|
||||
|
||||
Reference in New Issue
Block a user