fix(mobile): video player disposes early (#2275)

* fix(mobile): video player disposes early

* fixed show download button based on asset state

* style icon size

* disable screensleep on video player

* better position for video

* better scroll physics on iOS
This commit is contained in:
Alex
2023-04-18 11:23:56 -05:00
committed by GitHub
parent 8a45c258c5
commit c8d3faec6d
4 changed files with 53 additions and 35 deletions

View File

@@ -27,7 +27,7 @@ class TopControlAppBar extends HookConsumerWidget {
@override
Widget build(BuildContext context, WidgetRef ref) {
const double iconSize = 18.0;
const double iconSize = 22.0;
Widget buildFavoriteButton() {
return IconButton(
@@ -82,6 +82,14 @@ class TopControlAppBar extends HookConsumerWidget {
color: Colors.grey[200],
),
),
if (asset.storage == AssetState.merged)
IconButton(
onPressed: onDownloadPressed,
icon: Icon(
Icons.cloud_download_outlined,
color: Colors.grey[200],
),
),
if (asset.isRemote)
IconButton(
onPressed: () {