JaffaKetchup / flutter_map_tile_caching

Plugin for flutter_map providing advanced & performant caching and bulk downloading functionality, with many options for region shapes and extra tools
https://pub.dev/packages/flutter_map_tile_caching
GNU General Public License v3.0
117 stars 73 forks source link

Remove 'await' as store is created synchronously using .create() #124

Closed mdavo6 closed 1 year ago

mdavo6 commented 1 year ago

I was receiving the error below following the quickstart instructions.

Uses 'await' on an instance of 'void', which is not a subtype of 'Future'. Try removing the 'await' or changing the expression"

Removing 'await' resolves the issue. Alternatively, could update .create() to .createAsync() with await.

JaffaKetchup commented 1 year ago

Thanks for catching this @mdavo6 :) It should be createAsync(). I'll update this soon.

JaffaKetchup commented 1 year ago

Fixed in c2847adba27b2e0b1c8a0a1315543aa6ce72469f.

mdanics commented 12 months ago

@JaffaKetchup fyi this is also present on the Using Routes and Stores page of the docs