chore: defaultly save files on Android

- defaultly save files on Android instead of share
- add dedicated share button for files and images on Android
- use ListTile instead of row to display file event
- update file_picker_cross

Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
This commit is contained in:
TheOneWithTheBraid 2022-04-30 17:43:38 +02:00
commit 49caad00c0
9 changed files with 137 additions and 68 deletions

View file

@ -28,6 +28,9 @@ class ImageViewerController extends State<ImageViewer> {
/// Save this file with a system call.
void saveFileAction() => widget.event.saveFile(context);
/// Save this file with a system call.
void shareFileAction() => widget.event.shareFile(context);
static const maxScaleFactor = 1.5;
/// Go back if user swiped it away