utils\get_bytes_from_assets library
Functions
-
getBytesFromAsset(
{required String path, required int width}) → Future< Uint8List> -
This function loads an image from the asset bundle, resizes it to the specified width,
and then returns the image as a
Uint8Listof bytes in PNG format.