mirror of
https://github.com/gabehf/Fladder.git
synced 2026-04-23 12:31:52 -07:00
Init repo
This commit is contained in:
commit
764b6034e3
566 changed files with 212335 additions and 0 deletions
17
lib/screens/syncing/widgets/sync_progress_builder.dart
Normal file
17
lib/screens/syncing/widgets/sync_progress_builder.dart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import 'package:fladder/models/syncing/download_stream.dart';
|
||||
import 'package:fladder/models/syncing/sync_item.dart';
|
||||
import 'package:fladder/providers/sync/sync_provider_helpers.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
||||
class SyncProgressBuilder extends ConsumerWidget {
|
||||
final SyncedItem item;
|
||||
final Widget Function(BuildContext context, DownloadStream? combinedStream) builder;
|
||||
const SyncProgressBuilder({required this.item, required this.builder, super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final syncStatus = ref.watch(syncDownloadStatusProvider(item));
|
||||
return builder(context, syncStatus);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue