feat(mobile): lazy loading of assets (#2413)

This commit is contained in:
Fynn Petersen-Frey
2023-05-17 19:36:02 +02:00
committed by GitHub
parent 93863b0629
commit 0dde76bbbc
54 changed files with 1494 additions and 2328 deletions

View File

@@ -21,7 +21,7 @@ class TopControlAppBar extends HookConsumerWidget {
final VoidCallback? onDownloadPressed;
final VoidCallback onToggleMotionVideo;
final VoidCallback onAddToAlbumPressed;
final VoidCallback onFavorite;
final VoidCallback? onFavorite;
final bool isPlayingMotionVideo;
final bool isFavorite;
@@ -31,9 +31,7 @@ class TopControlAppBar extends HookConsumerWidget {
Widget buildFavoriteButton() {
return IconButton(
onPressed: () {
onFavorite();
},
onPressed: onFavorite,
icon: Icon(
isFavorite ? Icons.favorite : Icons.favorite_border,
color: Colors.grey[200],