Problem with URI: Expected a value of type 'Iterable<dynamic>', but got one of type 'DateTime'
dhilipkumars opened this issue · comments
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'
@dhilipkumars I fixed the issue, run flutter pub upgrade
@dhilipkumars we released a new version, did you try?
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.
works fine thanks for the help.