@@ -423,8 +423,8 @@ class _DownloadManagerPageState extends State<DownloadManagerPage>
423423 subtitle: Column (
424424 crossAxisAlignment: CrossAxisAlignment .start,
425425 children: [
426- Text (S .of (context).fileSize ( _formatFileSize (stat.size)) ),
427- Text (S .of (context).fileTime ( _formatDateTime (stat.modified)) ),
426+ Text ('${ S .of (context ).size }: ${ _formatFileSize (stat .size )}' ),
427+ Text ('${ S .of (context ).modifiedTime }: ${ _formatDateTime (stat .modified )}' ),
428428 ],
429429 ),
430430 trailing: const Icon (Icons .more_vert),
@@ -722,7 +722,15 @@ class _DownloadManagerPageState extends State<DownloadManagerPage>
722722 String directoryPath = filePath.substring (0 , filePath.lastIndexOf ('/' ));
723723
724724 // 尝试打开文件管理器并定位到文件
725- await OpenFileManager .open (directoryPath);
725+ await openFileManager (
726+ androidConfig: AndroidConfig (
727+ folderType: AndroidFolderType .other,
728+ folderPath: directoryPath,
729+ ),
730+ iosConfig: IosConfig (
731+ folderPath: directoryPath,
732+ ),
733+ );
726734
727735 Get .showSnackbar (GetSnackBar (
728736 message: S .of (context).fileManagerOpened,
@@ -741,7 +749,15 @@ class _DownloadManagerPageState extends State<DownloadManagerPage>
741749 Future <void > _openDownloadDirectory () async {
742750 if (_downloadPath != null ) {
743751 try {
744- await OpenFileManager .open (_downloadPath! );
752+ await openFileManager (
753+ androidConfig: AndroidConfig (
754+ folderType: AndroidFolderType .other,
755+ folderPath: _downloadPath! ,
756+ ),
757+ iosConfig: IosConfig (
758+ folderPath: _downloadPath! ,
759+ ),
760+ );
745761 Get .showSnackbar (GetSnackBar (
746762 message: S .of (context).downloadDirectoryOpened,
747763 duration: const Duration (seconds: 2 ),
0 commit comments