mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-19 21:39:16 +00:00
Added loading indicator
This commit is contained in:
parent
e603814d42
commit
693e66e125
1 changed files with 14 additions and 7 deletions
|
@ -250,7 +250,14 @@ class _Header extends SliverPersistentHeaderDelegate {
|
|||
left: (constraints.maxWidth/2)-(_iconSize/2),
|
||||
child: Opacity(
|
||||
opacity: 1-iconPercentage,
|
||||
child: Icon(
|
||||
child: serversProvider.updateAvailable.loadStatus == LoadStatus.loading
|
||||
? const Column(
|
||||
children: [
|
||||
CircularProgressIndicator(),
|
||||
SizedBox(height: 4)
|
||||
],
|
||||
)
|
||||
: Icon(
|
||||
serversProvider.updateAvailable.data!.canAutoupdate == true
|
||||
? Icons.system_update_rounded
|
||||
: Icons.system_security_update_good_rounded,
|
||||
|
|
Loading…
Add table
Reference in a new issue