modify struktur organisasi page so can be edited, add delete siswa, add 'pengeluaran' in dana sosial, added edit siswa dialog

This commit is contained in:
kicap
2023-08-21 03:46:54 +08:00
parent 4f7a8b870c
commit b1dc1851a4
15 changed files with 1173 additions and 519 deletions

View File

@ -20,7 +20,9 @@ class MyHttpServices {
Future<Response> get(String path) async {
try {
return await _dio.get(path);
} on DioError {
} on DioError catch (e) {
log.e(e.message);
log.e(e.response);
rethrow;
}
}
@ -28,8 +30,31 @@ class MyHttpServices {
Future<Response> postWithFormData(String path, FormData formData) async {
try {
return await _dio.post(path, data: formData);
} on DioError {
} on DioError catch (e) {
log.e(e.message);
log.e(e.response);
rethrow;
}
}
// // delete
// Future<Response> delete(String path, FormData data) async {
// try {
// // log.i('path: $path');
// return await _dio.delete(
// path,
// data: data,
// // encoding: Encoding.getByName('utf-8'),
// options: Options(
// headers: {
// 'Content-Type': 'application/x-www-form-urlencoded',
// },
// ),
// );
// } on DioError catch (e) {
// log.e(e.message);
// log.e(e.response);
// rethrow;
// }
// }
}