mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 06:55:12 +00: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:
parent
66b2cf973b
commit
17799aa191
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue