File tree 2 files changed +9
-11
lines changed
2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,7 @@ class GuardBySync extends StatelessWidget {
25
25
builder: (context, snapshot) {
26
26
final status = snapshot.requireData;
27
27
final (didSync, progress) = switch (priority) {
28
- null => (
29
- status.hasSynced ?? false ,
30
- status.downloadProgress? .untilCompletion
31
- ),
28
+ null => (status.hasSynced ?? false , status.downloadProgress),
32
29
var priority? => (
33
30
status.statusForPriority (priority).hasSynced ?? false ,
34
31
status.downloadProgress? .untilPriority (priority)
@@ -42,9 +39,10 @@ class GuardBySync extends StatelessWidget {
42
39
child: Column (
43
40
children: [
44
41
const Text ('Busy with sync...' ),
45
- LinearProgressIndicator (value: progress? .fraction ),
42
+ LinearProgressIndicator (value: progress? .downloadedFraction ),
46
43
if (progress case final progress? )
47
- Text ('${progress .completed } out of ${progress .total }' )
44
+ Text (
45
+ '${progress .downloadedOperations } out of ${progress .totalOperations }' )
48
46
],
49
47
),
50
48
);
Original file line number Diff line number Diff line change @@ -310,21 +310,21 @@ packages:
310
310
path: "../../packages/powersync"
311
311
relative: true
312
312
source: path
313
- version: "1.11.3 "
313
+ version: "1.12.4 "
314
314
powersync_core:
315
315
dependency: "direct overridden"
316
316
description:
317
317
path: "../../packages/powersync_core"
318
318
relative: true
319
319
source: path
320
- version: "1.1.3 "
320
+ version: "1.2.4 "
321
321
powersync_flutter_libs:
322
322
dependency: "direct overridden"
323
323
description:
324
324
path: "../../packages/powersync_flutter_libs"
325
325
relative: true
326
326
source: path
327
- version: "0.4.5 "
327
+ version: "0.4.7 "
328
328
pub_semver:
329
329
dependency: transitive
330
330
description:
@@ -438,10 +438,10 @@ packages:
438
438
dependency: transitive
439
439
description:
440
440
name: sqlite3_web
441
- sha256: "870f287c2375117af1f769893c5ea0941882ee820444af5c3dcceec3b217aab1 "
441
+ sha256: "967e076442f7e1233bd7241ca61f3efe4c7fc168dac0f38411bdb3bdf471eb3c "
442
442
url: "https://pub.dev"
443
443
source: hosted
444
- version: "0.3.0 "
444
+ version: "0.3.1 "
445
445
sqlite_async:
446
446
dependency: "direct main"
447
447
description:
You can’t perform that action at this time.
0 commit comments