Flutter-geolocator: placemarkFromCoordinates 'List' is not a subtype of type 'Future' error

Created on 27 Aug 2018  ·  3Comments  ·  Source: Baseflow/flutter-geolocator

🐛 Bug Report

When using placemarkFromCoordinates, I get the error type 'List<dynamic>' is not a subtype of type 'Future<dynamic>' on line 192 in geolocator.dart.

Changing Future<dynamic> placemarks = await _methodChannel.invokeMethod( 'placemarkFromCoordinates', <String, double>{"latitude": latitude, "longitude": longitude}); to

List<dynamic> placemarks = await _methodChannel.invokeMethod( 'placemarkFromCoordinates', <String, double>{"latitude": latitude, "longitude": longitude});

fixes the issue.

Configuration

Flutter 0.7.0

Version: 1.6.2

Platform:

  • [ ] :iphone: iOS
  • [x] :robot: Android
bug

All 3 comments

@fawadkhanucp thank you for reporting this issue. I can indeed reproduce it (after upgrading my Flutter installation to 0.6.2 or higher).

I am currently working on it and will release a fix with version 1.6.3 later today.

@fawadkhanucp a quick follow up, we just release version 1.6.3 of the Geolocator plug-in which includes your changes. Thanks again for reporting the issue.

@mvanbeusekom tested. working perfectly. thanks for the fast response. appreciate it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lqmminh picture lqmminh  ·  6Comments

prasant10050 picture prasant10050  ·  6Comments

shrishti08 picture shrishti08  ·  3Comments

domliang picture domliang  ·  7Comments

devalp-pro picture devalp-pro  ·  3Comments