fixes news?

This commit is contained in:
BalazsManus
2025-02-14 14:13:56 +01:00
parent 1b6992132e
commit df63c258b3
3 changed files with 3 additions and 3 deletions

View File

@@ -127,7 +127,8 @@ class FilcAPI {
http.Response res = await http.get(Uri.parse(news));
if (res.statusCode == 200) {
return (jsonDecode(res.body) as List)
String utf8Body = utf9.decode(res.bodyBytes);
return (jsonDecode(utf8Body) as List)
.cast<Map>()
.map((e) => News.fromJson(e))
.toList();