|
|
|
@ -3,9 +3,10 @@ import 'dart:typed_data';
|
|
|
|
|
|
|
|
|
|
import 'package:file_picker/file_picker.dart'; |
|
|
|
|
import 'package:flutter_file_dialog/flutter_file_dialog.dart'; |
|
|
|
|
import 'package:neon/src/platform/platform.dart'; |
|
|
|
|
|
|
|
|
|
Future<String?> saveFileWithPickDialog(final String fileName, final Uint8List data) async { |
|
|
|
|
if (Platform.isAndroid || Platform.isIOS) { |
|
|
|
|
if (NeonPlatform.instance.shouldUseFileDialog) { |
|
|
|
|
// TODO: https://github.com/nextcloud/neon/issues/8 |
|
|
|
|
return FlutterFileDialog.saveFile( |
|
|
|
|
params: SaveFileDialogParams( |
|
|
|
|