Steven Liu
ย ยทย FF Expert & Ambassador | Helping you launch your app - hundredacretech.com | youtube.com/@StevenNoCode

Expected a value of type 'List Double', but got one of type 'List Dynamic'

Resolved

Hi all,

I have an API call giving me lat long and I'm trying to display it as markers on Google Map. As it's giving me lat/long as separate JSON values, I have a custom function to combine them into (Lat,Lng) to show as marker.

This is definitely causing the problem as I've been testing every tiny change and as soon as I made this change, it was throwing the error in TEST mode and showing a blank map when I downloaded the SDK to test on Android.

I've included the API response, the custom code, the map marker widget and the error screenshots below.

I would really appreciate the help as I actually finished building the app using 'RUN' mode (thinking it's a replication of what it'd be on the phone) which was not throwing any error until I loaded it to the phone. So I'm building from the ground up again to identify the error.

1
3 replies