Last active
December 13, 2022 12:29
-
-
Save Frankdroid7/f61aec3b74c651f722c69e82e17bb896 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Future storePdfBytesToFile(Uint8List bytes) async { | |
const filename = 'VueJs CheatSheet'; | |
final dir = await getApplicationDocumentsDirectory(); | |
final file = File('${dir.path}/$filename.pdf'); | |
await file.writeAsBytes(bytes); | |
setState(() { | |
pdfPath = file.path; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment