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

Support Dart2 #29

Closed
Mistic92 opened this issue Apr 1, 2018 · 2 comments
Closed

Support Dart2 #29

Mistic92 opened this issue Apr 1, 2018 · 2 comments

Comments

@Mistic92
Copy link

Mistic92 commented Apr 1, 2018

Current code is not working with Dart2.

What I found as first is part with code

).then((String result) {

start working when replaced with

).then((dynamic result) {

But I don't have solution to fix problem with casting in "_setMethodCallHandlerListener"

type '_InternalLinkedHashMap' is not a subtype of type 'Map<String, List<double>>' where
  _InternalLinkedHashMap is from dart:collection
  Map is from dart:core
  String is from dart:core
  List is from dart:core
  double is from dart:core
@efortuna
Copy link

efortuna commented Apr 4, 2018

I made a fix for this issue, and submitted a PR, but in the meanwhile, you can just point to my fork: https://github.com/efortuna/flutterlocation

@Lyokone
Copy link
Owner

Lyokone commented Apr 5, 2018

Pushed to master, thank you :)

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

3 participants