Skip to content
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

FormBuilderSignaturePad: how to access the points list #62

Closed
stocksp opened this issue May 22, 2019 · 1 comment
Closed

FormBuilderSignaturePad: how to access the points list #62

stocksp opened this issue May 22, 2019 · 1 comment

Comments

@stocksp
Copy link

stocksp commented May 22, 2019

I would like to have access to the List (points property) but am having difficulty typing the points property that would be required.

The Point type which comes from the signature.dart package (which you use in your package, is not available to me (at least that is what the IDE says). If I try and import it, VSCode says Don't import implementation files from another package'. If I copy the class and enum into my file VSCode says its already defined. The IDE suggests I use the Point defined in the Math package which of course is wrong.

I see in the source that you have an import of 'src/widgets/signature.dart' to get at the type.
What is it I need to do so FormBuilderSignaturePad accepts and uses my points list so I can have access to it later.

@stocksp
Copy link
Author

stocksp commented May 22, 2019

I figured it out.
I forked your project. Moved the class Point and enum out of the signature.dart and added it to the exports. I now have access to the points List.
I don't really need this, it was more of an exercise as my Dart skills need a lot of work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant