feat: Add a proper file saver
This commit is contained in:
parent
7f7b05b6f4
commit
c96486e9a0
8 changed files with 73 additions and 63 deletions
|
|
@ -6,12 +6,13 @@ import 'package:flutter_cache_manager/flutter_cache_manager.dart';
|
|||
import 'matrix_file_extension.dart';
|
||||
|
||||
extension LocalizedBody on Event {
|
||||
void openFile(BuildContext context) async {
|
||||
void saveFile(BuildContext context) async {
|
||||
final matrixFile = await showFutureLoadingDialog(
|
||||
context: context,
|
||||
future: () => downloadAndDecryptAttachmentCached(),
|
||||
);
|
||||
matrixFile.result?.open();
|
||||
|
||||
matrixFile.result?.save(context);
|
||||
}
|
||||
|
||||
IconData get statusIcon {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue