79779791

Date: 2025-10-01 08:22:21
Score: 1
Natty:
Report link

A more straightforward way now is

final xFile = XFile.fromData((await rootBundle.load('assets/image.png')).buffer.asUint8List(), mimeType: "image/png");
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: David Fournier