fix: Last bits for the release
This commit is contained in:
parent
3d999b6ba0
commit
bfdc402a2b
6 changed files with 44 additions and 25 deletions
|
|
@ -24,8 +24,11 @@ extension MatrixFileExtension on MatrixFile {
|
|||
element.click();
|
||||
element.remove();
|
||||
} else {
|
||||
var tempDir = await getTemporaryDirectory();
|
||||
final file = File(tempDir.path + '/' + name.split('/').last);
|
||||
final downloadsDir = Platform.isAndroid
|
||||
? (await getExternalStorageDirectory())
|
||||
: (await getApplicationDocumentsDirectory());
|
||||
|
||||
final file = File(downloadsDir.path + '/' + name.split('/').last);
|
||||
file.writeAsBytesSync(bytes);
|
||||
await OpenFile.open(file.path);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue