Last active
December 13, 2022 12:28
-
-
Save Frankdroid7/f35e3116743ab46b5b7c61c02fe73167 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<Uint8List> getPdfBytesFromUrl(String pdfUrl) async { | |
final response = await http.get(Uri.parse(pdfUrl)); | |
Uint8List bytes = response.bodyBytes; | |
return bytes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment