opt: share/save video cover

Closes #563

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-29 20:38:36 +08:00
parent 6539457f83
commit db1c836a3e
6 changed files with 116 additions and 43 deletions

View File

@@ -72,6 +72,17 @@ void imageSaveDialog({
),
),
const SizedBox(width: 4),
IconButton(
tooltip: '分享',
onPressed: () {
DownloadUtils.onShareImg(cover ?? '');
},
icon: Icon(
Icons.share,
size: 20,
color: Theme.of(context).colorScheme.onSurfaceVariant,
),
),
IconButton(
tooltip: '保存封面图',
onPressed: () async {
@@ -89,7 +100,7 @@ void imageSaveDialog({
size: 20,
color: Theme.of(context).colorScheme.onSurfaceVariant,
),
)
),
],
),
),