[Setup] Added build.yaml and check.yaml (#1)

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2024-09-21 11:59:28 +02:00 committed by GitHub
parent 226686eb18
commit 7b3e733b76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
112 changed files with 3926 additions and 3784 deletions

View file

@ -50,7 +50,7 @@ class SyncProgressBar extends ConsumerWidget {
final downloadProgress = task.progress;
final downloadTask = task.task;
if (!task.hasDownload) {
return SizedBox.shrink();
return const SizedBox.shrink();
}
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
@ -73,20 +73,20 @@ class SyncProgressBar extends ConsumerWidget {
if (downloadStatus != TaskStatus.paused)
IconButton(
onPressed: () => ref.read(backgroundDownloaderProvider).pause(downloadTask),
icon: Icon(IconsaxBold.pause),
icon: const Icon(IconsaxBold.pause),
)
},
if (downloadStatus == TaskStatus.paused && downloadTask != null) ...[
IconButton(
onPressed: () => ref.read(backgroundDownloaderProvider).resume(downloadTask),
icon: Icon(IconsaxBold.play),
icon: const Icon(IconsaxBold.play),
),
IconButton(
onPressed: () => ref.read(syncProvider.notifier).deleteFullSyncFiles(item),
icon: Icon(IconsaxBold.stop),
icon: const Icon(IconsaxBold.stop),
)
],
].addInBetween(SizedBox(width: 8)),
].addInBetween(const SizedBox(width: 8)),
),
const SizedBox(width: 6),
],