2
0
mirror of https://gitlab.com/famedly/fluffychat.git synced 2025-05-03 08:17:24 +02:00

fix: busy loop due to CircularProgressIndicator

It can get redrawn even if the owning AnimatedContainer class has height
0. Setting it to completion when done stops the rebuilding cpu overhead.
This commit is contained in:
Steef Hegeman 2021-07-23 16:59:46 +02:00
parent 2fe1dcf03f
commit 15856e15dc

@ -58,7 +58,7 @@ class _ConnectionStatusHeaderState extends State<ConnectionStatusHeader> {
height: 24,
child: CircularProgressIndicator(
strokeWidth: 2,
value: _status.progress,
value: _connected ? 1.0 : _status.progress,
),
),
SizedBox(width: 12),