mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-21 22:39:11 +00:00
Added loading indicator
This commit is contained in:
parent
e603814d42
commit
693e66e125
1 changed files with 14 additions and 7 deletions
|
@ -250,13 +250,20 @@ class _Header extends SliverPersistentHeaderDelegate {
|
|||
left: (constraints.maxWidth/2)-(_iconSize/2),
|
||||
child: Opacity(
|
||||
opacity: 1-iconPercentage,
|
||||
child: Icon(
|
||||
serversProvider.updateAvailable.data!.canAutoupdate == true
|
||||
? Icons.system_update_rounded
|
||||
: Icons.system_security_update_good_rounded,
|
||||
size: _iconSize,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
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,
|
||||
size: _iconSize,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
|
|
Loading…
Add table
Reference in a new issue