Fakultas Ilmu Komputer UI

Commit 11c27904 authored by Adzkia Aisyah Afrah Hardian's avatar Adzkia Aisyah Afrah Hardian
Browse files

Merge branch 'PBI-2-pencarian_lokasi' of...

Merge branch 'PBI-2-pencarian_lokasi' of https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/dtb-beasiswa-miskin-dan-disabilitas/pplapangan-tembak-dtb-layanan-siswa-disabilitas into dev-afrah
parents a4332e94 f84f4741
Pipeline #40074 passed with stages
in 35 minutes and 59 seconds
......@@ -22,12 +22,12 @@ Map<String, dynamic> _$LokasiListResponseToJson(LokasiListResponse instance) =>
Lokasi _$LokasiFromJson(Map<String, dynamic> json) {
return Lokasi()
..nama = json['nama'] as String
..nama = json['name'] as String
..latitude = (json['latitude'] as num)?.toDouble()
..longitude = (json['longitude'] as num)?.toDouble()
..alamat = json['alamat'] as String
..foto = json['foto'] as String
..telepon = json['telepon'] as String;
..foto = json['image'] as String
..telepon = json['no_telp'] as String;
}
Map<String, dynamic> _$LokasiToJson(Lokasi instance) => <String, dynamic>{
......
......@@ -197,7 +197,6 @@ class PencarianState extends State<Pencarian> {
}
Widget makeLokasiWidget(String key, List<Lokasi> places) {
print('$key - $places');
return ListView.builder(
shrinkWrap: true,
itemCount: places.length,
......
......@@ -9,7 +9,7 @@ class LokasiRepository {
CookiesInterface _cookie = CookiesInterface();
Future<LokasiListResponse> fetchLokasi() async {
final response = await _network.get(
url: 'https://my.api.mockaroo.com/mall.json?key=dbcde960',
url: 'http://poipole-staging.herokuapp.com/informasi-fasilitas/lokasi/list/',
isLogin: false);
return LokasiListResponse(
response.map<Lokasi>((lokasi) => Lokasi.fromJson(lokasi)).toList());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment