printing/src/asset_utils library

Functions

flutterImageProvider(ImageProvider<Object> image, {ImageConfiguration? configuration, ImageErrorListener? onError}) Future<ImageProvider>
Loads an image from a Flutter ImageProvider into an ImageProvider instance
fontFromAssetBundle(String key, {AssetBundle? bundle, bool cache = true, PdfBaseCache? pdfCache, bool protect = false}) Future<TtfFont>
Loads a font from an asset bundle key. If used multiple times with the same font name, it will be included multiple times in the pdf file
imageFromAssetBundle(String key, {AssetBundle? bundle, bool cache = true, PdfImageOrientation? orientation, double? dpi, PdfBaseCache? pdfCache}) Future<ImageProvider>
Load an image from an asset bundle key.
networkImage(String url, {bool cache = true, Map<String, String>? headers, PdfImageOrientation? orientation, double? dpi, PdfBaseCache? pdfCache}) Future<ImageProvider>
Download an image from the network.