mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39:51 +00:00
feat: balance and scanning improvements
This commit is contained in:
parent
2502a14b50
commit
fd4c310088
22 changed files with 655 additions and 558 deletions
|
@ -22,6 +22,7 @@ class SyncIndicator extends StatelessWidget {
|
|||
final syncIndicatorWidth = 237.0;
|
||||
final status = dashboardViewModel.status;
|
||||
final statusText = syncStatusTitle(status);
|
||||
final isScanning = status is SyncingSyncStatus;
|
||||
final progress = status.progress();
|
||||
final indicatorOffset = progress * syncIndicatorWidth;
|
||||
final indicatorWidth = progress < 1
|
||||
|
@ -64,7 +65,17 @@ class SyncIndicator extends StatelessWidget {
|
|||
SyncIndicatorIcon(isSynced: status is SyncedSyncStatus),
|
||||
Padding(
|
||||
padding: EdgeInsets.only(left: 6),
|
||||
child: RollingText(statusText),
|
||||
child: isScanning
|
||||
? Text(
|
||||
statusText,
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w500,
|
||||
color:
|
||||
Theme.of(context).extension<SyncIndicatorTheme>()!.textColor,
|
||||
),
|
||||
)
|
||||
: RollingText(statusText),
|
||||
)
|
||||
],
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue