Open YellowTreeGood opened 5 months ago
Hello,
d.zip
With some images, calling imageRaster causes a RangeError. I have attached an image that causes such error. The following is the stack trace of the error.
RangeError: Invalid value: Not in inclusive range 0..5669: 5826 ...
#1 Generator._toRasterFormat (package:flutter_esc_pos_utils/src/generator.dart:189:25) #2 Generator.imageRaster (package:flutter_esc_pos_utils/src/generator.dart:656:38) #3 F_BluetoothDevice.print (package:fmc_bms/fmc.dart:180:33) <asynchronous suspension> #4 _F_PrintDialogueState.build.<anonymous closure>.<anonymous closure> (package:fmc_bms/common/ui/PrintingWidgets.dart:266:85) <asynchronous suspension>
Please have a look. Thank you.
The error only occurs for images whose width in pixels are not divisible by 8
Hello,
d.zip
With some images, calling imageRaster causes a RangeError. I have attached an image that causes such error. The following is the stack trace of the error.
RangeError: Invalid value: Not in inclusive range 0..5669: 5826 ...
0 List.insertAll (dart:core-patch/growable_array.dart:44:7)
Please have a look. Thank you.