feat: copy fast transfer json from file menus

This commit is contained in:
ngfchl
2026-07-18 16:58:07 +08:00
parent e0a3cad9b2
commit 5541e704d8
4 changed files with 219 additions and 29 deletions
+7
View File
@@ -14,6 +14,7 @@ class FileListTile extends StatelessWidget {
final VoidCallback? onCut;
final VoidCallback? onDownload;
final VoidCallback? onShare;
final VoidCallback? onCopyFastTransfer;
final VoidCallback? onDelete;
final bool isRecycleItem;
@@ -28,6 +29,7 @@ class FileListTile extends StatelessWidget {
this.onCut,
this.onDownload,
this.onShare,
this.onCopyFastTransfer,
this.onDelete,
this.isRecycleItem = false,
});
@@ -75,6 +77,11 @@ class FileListTile extends StatelessWidget {
onPressed: onShare,
child: const Text('分享'),
),
ShadContextMenuItem.inset(
leading: const Icon(LucideIcons.zap, size: 16),
onPressed: onCopyFastTransfer,
child: const Text('复制秒传'),
),
const Divider(height: 8),
ShadContextMenuItem.inset(
leading: Icon(