refactor(mobile): download button in new timeline (#20010)

* download button

* minor improvements
This commit is contained in:
Mert 2025-07-19 12:34:17 +03:00 committed by GitHub
parent fafb88d31c
commit 261818ddd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 170 additions and 21 deletions

View file

@ -52,7 +52,8 @@ class AssetDetailBottomSheet extends ConsumerWidget {
if (asset.hasRemote) ...[
const ShareLinkActionButton(source: ActionSource.viewer),
const ArchiveActionButton(source: ActionSource.viewer),
if (!asset.hasLocal) const DownloadActionButton(),
if (!asset.hasLocal)
const DownloadActionButton(source: ActionSource.viewer),
isTrashEnable
? const TrashActionButton(source: ActionSource.viewer)
: const DeletePermanentActionButton(source: ActionSource.viewer),