Skip to content

Commit

Permalink
more testing
Browse files Browse the repository at this point in the history
  • Loading branch information
deathblade666 committed Aug 30, 2024
1 parent cb2b52c commit 801c26f
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions lib/pages/menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,11 @@ class Menu extends StatefulWidget {
//return;
//}

var saveFile = await FlutterFileDialog.pickFile(params: OpenFileDialogParams());
final String filePath = saveFile.toString();
var result = await FlutterFileDialog.saveFile(params:
SaveFileDialogParams (
sourceFilePath:filePath,
data: bytes,
fileName: "Test.md")
);
final result = (await FlutterFileDialog.pickFile());

// await CRFileSaver.saveFileWithDialog(SaveFileDialogParams(sourceFilePath: '/sdcard/Downloads', destinationFileName: destinationFileName))
//final XFile textfile = XFile.fromData(bytes);
//await textfile.saveTo(result);
final XFile textfile = XFile.fromData(bytes);
await textfile.saveTo(result!);
//String path = result;
//var file = File(outputfile!);
//var sink = file.openWrite();
Expand Down

0 comments on commit 801c26f

Please sign in to comment.