mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-16 18:56:00 -07:00
feat: Sync offline/online playback when able (#431)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
15ac3566e2
commit
092836328f
42 changed files with 1002 additions and 497 deletions
|
|
@ -101,9 +101,11 @@ Future<void> _playVideo(
|
|||
if (AdaptiveLayout.of(context).isDesktop) {
|
||||
fullScreenHelper.closeFullScreen(ref);
|
||||
}
|
||||
|
||||
if (context.mounted) {
|
||||
context.refreshData();
|
||||
await context.refreshData();
|
||||
}
|
||||
|
||||
onPlayerExit?.call();
|
||||
}
|
||||
}
|
||||
|
|
@ -138,7 +140,7 @@ extension BookBaseModelExtension on BookModel? {
|
|||
);
|
||||
parentContext?.refreshData();
|
||||
if (context.mounted) {
|
||||
context.refreshData();
|
||||
await context.refreshData();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -176,7 +178,7 @@ extension PhotoAlbumExtension on PhotoAlbumModel? {
|
|||
),
|
||||
);
|
||||
if (context.mounted) {
|
||||
context.refreshData();
|
||||
await context.refreshData();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue