update utf
This commit is contained in:
@ -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']),
|
||||
),
|
||||
);
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user