4Q-s-r-o / signature

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

Multicolor pencolor support with export #105

Open rohitbhoite opened 7 months ago

rohitbhoite commented 7 months ago

Added changes to add multicolor penColor support. behaviour:

  1. When penColor is not changed Will follow existing behaviour
  2. when penColor is changed at runtime subsequent draws will follow the new penColor maintaining old pencolor points. If exportPenColor is not passed then exported object will have multicolor

https://github.com/4Q-s-r-o/signature/assets/13239043/4a3d7918-439a-4e0a-bad1-5fee161fc95e

  1. When exportPenColor is passed and penColor is changed at runtime An exported object will have a single color matching exportPenColor

https://github.com/4Q-s-r-o/signature/assets/13239043/a60eb236-8851-43c0-9787-c5f9f32ada9a

MartinHlavna commented 6 months ago

Thanks for PR. As mentioned in #96 we are putting this on hold for a little bit, because we need to decide if plugin will benefit from this.