Wrap a few things trying to prevent UI / main thread hang we saw one time

This commit is contained in:
stopflock committed 2025-11-09 13:59:05 -06:00
1 parent ca049033e4
commit 4ccf3cace3
3 files changed
+12 -6

No files matched your search

@@ -150,7 +150,7 @@ Future<List<OsmNode>> _fetchSingleOverpassQuery({
return [];
}
final data = jsonDecode(response.body) as Map<String, dynamic>;
final data = await compute(jsonDecode, response.body) as Map<String, dynamic>;
final elements = data['elements'] as List<dynamic>;
if (elements.length > 20) {