-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
How to integrate this library? #5
Comments
Hi, I think you would have something like...
|
Thanks. I've successfully integrated it but when I import the library its giving me this warning: The library 'package:line_animator/line_animator.dart' is legacy, and should not be imported into a null safe library. |
Strange, it should be updated to nullsafety. Are you using the master branch ? |
No. I'm on 2.5.3. Also getting this error on console . Error: Cannot run with sound null safety, because the following dependencies
For solutions, see https://dart.dev/go/unsound-null-safety |
Strange, it should be updated to null safety, and I've tested it with flutter sdk 2.5.2 and 2.8.0. What happens if you run flutter pub outdated --mode=null-safety ? (I get direct dependencies: all support null safety. All dependencies opt in to null-safety.) What does flutter pub deps show out of interest ? |
This is the output: Showing dependencies that are currently not opted in to null-safety. Package Name Current Upgradable Resolvable Latest direct dependencies: dev_dependencies: all support null safety. |
Doh ignore me, I didn't even read this as the right github repo, I was looking at line_editor which I do, not line_animator. My stupid mistake. Thanks for this. I'll take a look later, probably won't be such a quick fix, but I will take a look when I get time within the next day or so hopefully. |
I've done some updates, so you could try it now. |
That was quick. Well still getting errors. I think you updated the code but didn't upgrade the environment sdk to the null safety one in pubspec.yaml file. |
Ah yes, well spotted, see if that's better. |
Thanks. It's working. Can you please also update the example with null safety? |
Is it ok now ? |
Yes but I'm getting null error on LatLng markerPoint and List points. |
Sure you have updated it correctly, as line 36 initialises it, so not sure it can be null (and I don't get an error, so seems odd), but maybe I'm looking at something different ? https://github.com/ibrierley/line_animator/blob/master/example/lib/flutter_map_line_animator.dart Are you running example/lib/flutter_map_line_animator.dart ? |
It's working now. I was using the old code. Thanks man |
Super, thanks for the update and the patience. |
Hi, please guide me how can I integrate this library into my project? I cloned the example project and I was able to run it successfully but I don't know how to integrate it into my project. I'm having issue with adding the line animator in pubspec.yaml file.Please help
The text was updated successfully, but these errors were encountered: