Problem with URI: Expected a value of type 'Iterable<dynamic>', but got one of type 'DateTime'
dhilipkumars opened this issue · 4 comments
dhilipkumars commented
Hi
When i make a simple call like below but supply date
then i get below error.
var response = await SunriseSunset.getResults(
date: DateTime.now().toLocal(),
latitude: locationLat,
longitude: locationLong,
);
response
Problem with URI: Expected a value of type 'Iterable<dynamic>', but got one of type 'DateTime'
diegoveloper commented
@dhilipkumars I fixed the issue, run flutter pub upgrade
diegoveloper commented
@dhilipkumars we released a new version, did you try?
dhilipkumars commented
Thanks for the quick fix and thanks for the package, will try soon , Also directly doing Datetime.toString()
works to instead of just stripping just the date
part it.
dhilipkumars commented
works fine thanks for the help.