mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-07-13 07:46:36 +02:00
logging for debug map-no-update-until-move after caching tiles
This commit is contained in:
@@ -42,6 +42,7 @@ class TileProviderWithCache extends TileProvider {
|
||||
_tileCache[key] = Uint8List.fromList(bytes);
|
||||
print('[TileProviderWithCache] Cached tile $key, bytes=${bytes.length}');
|
||||
if (onTileCacheUpdated != null) {
|
||||
print('[TileProviderWithCache] Calling onTileCacheUpdated for $key');
|
||||
SchedulerBinding.instance.addPostFrameCallback((_) => onTileCacheUpdated!());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user