4Q-s-r-o / signature

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

Update toPngBytes() with optional dimens parameter #70

Closed arbyazra123 closed 2 years ago

arbyazra123 commented 2 years ago

From :

Future<Uint8List?> toPngBytes() async {
...
}

To :

Future<Uint8List?> toPngBytes({int? width=400, int? height=500}) async {
...
}
MartinHlavna commented 2 years ago

Hi, thanks for PR. I am closing this in favor of #69 which solves the same issue. Solution is essentially same, but there are another good contributions.

katherineqian commented 1 year ago

Hi @MartinHlavna, the height and width params appear to not be implemented for web, fyi.