4Q-s-r-o / signature

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

Export and upload to server in JSON #16

Closed 9thwall closed 4 years ago

9thwall commented 4 years ago

Hi I'm looking to export the signature and send it to the server in a json string. What is the best method to achieve this?

I was thinking.. Uint8List signature = await _signatureController.toPngBytes(); String signature64 = base64Encode(signature);

But this is giving me an error Unhandled Exception: type '_InternalLinkedHashMap<String, String>' is not a subtype of type 'String'

9thwall commented 4 years ago

Sorry this was the wrong place to post this and the error was my fault. Completely unrelated issue.