Fakultas Ilmu Komputer UI

Commit 2f0bc5d1 authored by Dzaky Noor Hasyim's avatar Dzaky Noor Hasyim
Browse files

Merge branch 'dev-noor3' into 'PBI-14-agenda_kegiatan'

Dev noor3

See merge request !73
parents bdb7a963 824de8b0
Pipeline #82093 passed with stages
in 15 minutes and 16 seconds
......@@ -122,9 +122,16 @@ class _ListKegiatanState extends State<ListKegiatan> {
);
break;
case Status.error:
return Center(
child: Text(snapshot.data.data.toString()),
);
return Center(child: Container(
padding: const EdgeInsets.only(top: tripleSpace),
child: Text('Tidak ada kegaitan ditemukan',
style: const TextStyle(
fontSize: 18,
color: Colors.black,
fontFamily: 'Muli',
),
textAlign: TextAlign.center,),),);
break;
}
}
......
......@@ -33,7 +33,7 @@ class KegiatanRepository implements BaseKegiatanRepository {
@override
Future<dynamic> fetchKegiatanSearch(String search, String sortConfig) async {
var url = '/informasi-fasilitas/lokasi/list-kegiatan-by-$sortConfig';
if(search != null){
if(search != null && search!=''){
url += '/$search';
}
final response = await _network.get(url: url, isLogin: false);
......
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