4Q-s-r-o / signature

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

exportBackgroundColor: Colors.transparent is not working. #86

Closed laopaoer-wallet closed 1 year ago

laopaoer-wallet commented 1 year ago

exportBackgroundColor: Colors.transparent is not working.

jtaylor-dohle commented 1 year ago

Having the same issue. exportBackgroundColor: Colors.transparent is causing image to be exported with black background.

Not sure how to figure out when this bug was introduced, this project has no tags!

hasbean commented 1 year ago

I am suddenly having this issue as well with form_builder_extra_fields. What made it worse was that I was using a black pen color and had no clue what was going on as it all showed up as black.

Resorting to using white background now.

--edit: Forgot to mention, I'm running this on the web.

I've worked around it by exporting the image instead:

var image = (await _controller.toImage())!;

if (image == null) return;

var bytes = (await image.toByteData(format: ImageByteFormat.png))!.buffer.asUint8List();
MartinHlavna commented 1 year ago

Issue affects web only. Fix will be released soon.

MartinHlavna commented 1 year ago

Fixed in 5.4.0

AlexPopaUpcode commented 1 year ago

I have the same issue on Android. The 5.4.0 version doesn't fix the problem