4Q-s-r-o / signature

Flutter plugin that creates a canvas for writing down a signature
MIT License
255 stars 85 forks source link

toPngBytes method is not working #21

Closed SebastienBtr closed 4 years ago

SebastienBtr commented 4 years ago

When calling the toPngBytes method, an exception is thrown:

Unhandled Exception: Exception: operation failed

This exception occurs at line 189 of signature.dart:

picture.toImage( (maxX - minX + penStrokeWidth * 2).toInt(), (maxY - minY + penStrokeWidth * 2).toInt());

SebastienBtr commented 4 years ago

I was using a genymotion emulator when this issue appeared (I still don't really know why), with a real Android studio emulator (and so on a real device I guess) this is working as expected. I'm closing the issue as it seems to work on proper devices.