-
-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initializing SignaturePad a #317
Comments
Hi @vin-fandemand, To initialize the value of the signature you'd have to use |
Thanks for the reply. I see that you have depreciated the initialValue for signature.
This way the package users don't have to do anything with the I have created a PR https://github.com/danvick/flutter_form_builder/pull/344 . Please approve if you like it. |
I've thought about doing this. But the problem with that is that users may expect that they could be able to edit the static image shown - and may be reported as unexpected behavior. |
Yes. By making it look different when saved and not saved (one is a card with some elevation and one is signature pad, which is an inward facing white rectangle ). May be we can even have different text on the Clear button to show the difference. |
my suggestion is that we push it and see how your package users respond. I am sure there are any out there who don't want to use Signature Controller (As you rightly described as complex) and would happily welcome this change. |
@danvick can you please share your thoughts on it ? I believe that if you don't fix this problem in some way (whether it is my approach or some other approach), it would feel like this feature is kind of dangling |
Another way around may be allowing users to store data as But since it is signature pad and not a full featured drawing editor I can't think of use case where end user would want to edit Signature instead of making a new one. |
* #317 fix for initializing signature * resolve review comments * fix final review comments * v3.11.3 docs * add txtstyle params and re-implmenet numberFormat (#343) * add txtstyle params and re-implmenet numberFormat * rename fieldTextStyle and add it as a fallback * Fix bug in ChoiceChip & FilterChip where using FieldOption label instead of child breaks app. Closes #348 * Added labelPadding and labelStyle to ChoiceChip field * Added const keyword to constructor. * Added an extra deprecated annotation so that users are alerted to the deprecation of label. (I noticed that my code was not alerting with the deprecation only on the field declaration.) * Dependency upgrades. * chages to fix teh overflow with labels Co-authored-by: Danvick Miller <danvickmiller@live.com> Co-authored-by: William Cunha Cardoso <31575772+WilliamCunhaCardoso@users.noreply.github.com> Co-authored-by: Anthony Whitford <anthony@whitford.com>
How do you initialize Signature-pad. I tried passing Uint8List.fromList([]) in the intialValue, but it did not load anything. Can you please show an example ? Also, can you show and example where initial values are displayed in a read only form ?
The text was updated successfully, but these errors were encountered: