- Upgraded gradle plugin
- Changed method for getting parent widget size to prevent drawing outside of the widget
- Fixed exportPenColor being ignored in svg export
-
Fixed overlapping polylines in svg export (dubydu)
-
Fixed problem with svg color representation in some engines (henry2man)
- Fixed transparent export background in web
- Ability to disable canvas writting (jeronimocabezuelo)
- Ability to initialize width and height of widget with new values (Bungeefan)
- Exposing new information for drawing styles (StrokeCap, StrokeJoin) (saschaernst)
- Export image size for web version (saschaernst)
- upgrade to Flutter 3.7
- upgrade dependencies
- Change
toPngBytes
to have desired width and height parameter, where before having 500x400 as fixed. (yurtemre7) - Improve Example project and update it to the latest flutter 3 (yurtemre7)
- Update Readme accordingly (yurtemre7)
- Fixed formating of signature.dart to address static analysis on pub.dev
- Ability to export image as SVG (h7x4)
- Ability to export image to png with given height and width
- Drawing will be centered
- If dimension is smaller than actual drawing in debug mode there will be assertion error
- Fixed broken outside drawing to left and right sides (madsane29)
- Dynamic pressure support (KiritoDv)
- If widget was used without dimensions user could draw outside the box.
- Added exportPenColor
- Undo/Redo support (munyaaa)
- onDrawMove callback support (h7x4ABk3g)
- Fixed
Incorrect use of ParentDataWidget
error in console under some circumstances. (h7x4ABk3g)
- Fixed bug when drawing is cancelled without calling onPointerUp when user touches app bat while drawing (ChannelYu)
- Added
onDrawStart
andonDrawEnd
callbacks (LukasLiebl) - Fixed weird multitouch behaviour
- Fixed pud.dev analysis issues
- Fixed pud.dev analysis issues
- Stable release of null safety
- Pre release version containing support for dart null safety (tiloc)
- Fixed strange dot at the end of the signature when having smaller pen stroke
- Added web support (export was not working in web previously) (leonardarnold)
- Fixed not working points setter in
SignatureController
- Fixed possible null pointer exception (Danvick Miller)
- Fixed bug repainting canvas after clear in some situations (Brian Garcia)
- Added possibility to set export background instead of default transparent (dalosy-projecten-bv)
- Merged awesome controller implementation from jeanmatthieud that solves many bugs in cases where widget is not available (braking change)
- Fixed problems when writing too fast
- Fixed conflict between scrolling scroll container and drawing the signature
Migration from 2.x.x:
- You have to provide SignatureController and use it to manipulate with data instead using widget itself. Api is almost same but it is now split between
Signature
widget andSignatureController
. - See updated example.
- Fixed null pointer in case that future was resolved after widget has been removed from tree on slower devices
- Migration from
android.support
packages toandroidx
packages that allows this library to be used with flutter projects that useandroidx
. If you need to stay onandroid.support
for whatever reason, don't upgrade as it may break your build. See more.
- Fixed breaking change in Picture.toImage in latest flutter
- New properties isEmpty and isNotEmpty at Signature class for validation purposes
- fixed bug where canvas was not writable in case of specific boundary setup
- removed debug statements and cleanup
- README modifications and code reformat
- Initial release