update utf

This commit is contained in:
Mohamed Nouffer
2022-03-14 13:14:15 +05:30
parent 332a14230e
commit 5e3de63a3c
2 changed files with 4 additions and 2 deletions

View File

@ -88,7 +88,7 @@ class HomePage extends GetView<HomeController> {
);
},
leading: getImage(index),
title: Text(homeController.locations[0].collection[index].properties!['location_name']),
title: Text(homeController.locations[0].collection[index].properties!['location_name'].toString()),
subtitle: Text(homeController.locations[0].collection[index].properties!['category']),
),
);

View File

@ -1,3 +1,5 @@
import 'dart:convert';
import 'package:geojson/geojson.dart';
import 'package:http/http.dart' as http;
@ -21,7 +23,7 @@ class LocationService{
// });
return featuresFromGeoJson(response.body);
return featuresFromGeoJson(utf8.decode(response.bodyBytes));
// await geo.parse(response.body, verbose:true);
// return fs;