Skip to content

Commit

Permalink
Merge pull request #162 from fleetimee/add_detail_agunan
Browse files Browse the repository at this point in the history
feat: detail agunan done for reviewer
  • Loading branch information
fleetimee authored Feb 8, 2023
2 parents ff67c86 + 8e7b2ac commit d8e487d
Show file tree
Hide file tree
Showing 13 changed files with 4,733 additions and 1,614 deletions.
2,579 changes: 1,267 additions & 1,312 deletions lib/app/modules/agunan_pilih/views/agunan_pilih_view.dart

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions lib/app/modules/detail_agunan/bindings/detail_agunan_binding.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import 'package:get/get.dart';

import '../controllers/detail_agunan_controller.dart';

class DetailAgunanBinding extends Bindings {
@override
void dependencies() {
Get.lazyPut<DetailAgunanController>(
() => DetailAgunanController(),
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'package:akm/app/models/debitur_model/insight_debitur.model.dart';
import 'package:flutter_map_marker_popup/flutter_map_marker_popup.dart';
import 'package:get/get.dart';

class DetailAgunanController extends GetxController {
DebiturInsight args = Get.arguments;

final PopupController popupLayerController = PopupController();
}
2,759 changes: 2,759 additions & 0 deletions lib/app/modules/detail_agunan/views/detail_agunan_view.dart

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ class HomePengutusView extends GetView<HomePengutusController> {
height: 6.0,
),
const Text(
"Pengajuan yang sudah di review",
"Pengajuan yang sudah di putuskan",
style: TextStyle(
fontSize: 15.0,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,21 +208,6 @@ Future<Uint8List> makeInputPdf(DebiturInsight debtor) async {

pdf.addPage(
MultiPage(
// pageTheme: PageTheme(
// buildForeground: (context) {
// return FullPage(
// ignoreMargins: true,
// child: Watermark.text(
// 'fleetime',
// style: TextStyle(
// color: PdfColors.grey,
// fontSize: 100,
// fontWeight: FontWeight.bold,
// ),
// ),
// );
// },
// ),
footer: (context) => Container(
alignment: Alignment.centerRight,
margin: const EdgeInsets.only(top: 1.0 * PdfPageFormat.cm),
Expand Down
869 changes: 617 additions & 252 deletions lib/app/modules/pengajuan_printing/views/pengajuan_printing_view.dart

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@ class PengutusSubmitController extends GetxController {
super.onInit();
}

@override
void onReady() {
Future.delayed(const Duration(seconds: 5), () {
getRating();
});

super.onReady();
}

PengajuanDetail pengajuan = Get.arguments;

var isProcessing = false.obs;
Expand Down Expand Up @@ -141,6 +132,7 @@ class PengutusSubmitController extends GetxController {
(resp) {
isProcessing(false);
insightDebitur.value = resp;
getRating();
}, onError: (err) {
isProcessing(false);
Get.snackbar('Error', err.toString());
Expand Down
19 changes: 19 additions & 0 deletions lib/app/modules/pengutus_submit/views/pengutus_submit_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1360,6 +1360,25 @@ class AgunanCard extends StatelessWidget {
fullWidthButton: true,
size: GFSize.LARGE,
),
const SizedBox(
height: 10.0,
),
GFButton(
onPressed: () {
Get.toNamed(Routes.DETAIL_AGUNAN,
arguments: controller.insightDebitur.value);
},
color: Colors.pink,
shape: GFButtonShape.pills,
text: 'Lihat Detail Agunan',
icon: const Icon(
Icons.summarize,
size: 18,
color: secondaryColor,
),
fullWidthButton: true,
size: GFSize.LARGE,
),
const SizedBox(height: 10),
FormBuilderRadioGroup(
name: 'agunan',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,6 @@ class ReviewerSubmitController extends GetxController {
super.onInit();
}

@override
void onReady() {
Future.delayed(const Duration(seconds: 5), () {
getRating();
});

super.onReady();
}

var bahasanReviewer = List.empty(growable: true);

var pendingCtrl = Get.put(ReviewerPendingListController());
Expand Down Expand Up @@ -138,6 +129,7 @@ class ReviewerSubmitController extends GetxController {
(resp) {
isProcessing(false);
insightDebitur.value = resp;
getRating();
}, onError: (err) {
isProcessing(false);
Get.snackbar('Error', err.toString());
Expand Down
54 changes: 38 additions & 16 deletions lib/app/modules/reviewer_submit/views/reviewer_submit_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,12 @@ class ReviewerSubmitView extends GetView<ReviewerSubmitController> {
const SizedBox(height: 10),
Text(
'Ini merupakan hasil inputan debitur yang telah diinputkan oleh analis, dan akan di review oleh anda sebagai reviewer.',
style: Theme.of(context).textTheme.bodySmall?.merge(
const TextStyle(
fontSize: 14,
),
),
style:
Theme.of(context).textTheme.bodySmall?.merge(
const TextStyle(
fontSize: 14,
),
),
),
const SizedBox(height: 10),
Obx(
Expand Down Expand Up @@ -969,11 +970,12 @@ class ReviewerSubmitView extends GetView<ReviewerSubmitController> {
const SizedBox(height: 10),
Text(
'Ini adalah tanggapan analis terhadap pengajuan ini',
style: Theme.of(context).textTheme.bodySmall?.merge(
const TextStyle(
fontSize: 14,
),
),
style:
Theme.of(context).textTheme.bodySmall?.merge(
const TextStyle(
fontSize: 14,
),
),
),
ListView.builder(
shrinkWrap: true,
Expand Down Expand Up @@ -1043,11 +1045,12 @@ class ReviewerSubmitView extends GetView<ReviewerSubmitController> {
const SizedBox(height: 10),
Text(
'Ini merupakan catatan dari reviewer terhadap pengajuan debitur',
style: Theme.of(context).textTheme.bodySmall?.merge(
const TextStyle(
fontSize: 14,
),
),
style:
Theme.of(context).textTheme.bodySmall?.merge(
const TextStyle(
fontSize: 14,
),
),
),
const SizedBox(height: 10),
Row(
Expand Down Expand Up @@ -1295,7 +1298,26 @@ class AgunanCard extends StatelessWidget {
},
color: primaryColor,
shape: GFButtonShape.pills,
text: 'Lihat Summary Agunan',
text: 'Lihat Analisa Agunan',
icon: const Icon(
Icons.summarize,
size: 18,
color: secondaryColor,
),
fullWidthButton: true,
size: GFSize.LARGE,
),
const SizedBox(
height: 10.0,
),
GFButton(
onPressed: () {
Get.toNamed(Routes.DETAIL_AGUNAN,
arguments: controller.insightDebitur.value);
},
color: primaryColor,
shape: GFButtonShape.pills,
text: 'Lihat Detail Agunan',
icon: const Icon(
Icons.summarize,
size: 18,
Expand Down
7 changes: 7 additions & 0 deletions lib/app/routes/app_pages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import '../modules/debitur_deploy/views/debitur_deploy_view.dart';
import '../modules/debitur_real/bindings/debitur_real_binding.dart';
import '../modules/debitur_real/views/debitur_edit_view.dart';
import '../modules/debitur_real/views/debitur_onboarding_view.dart';
import '../modules/detail_agunan/bindings/detail_agunan_binding.dart';
import '../modules/detail_agunan/views/detail_agunan_view.dart';
import '../modules/gallery_file/bindings/gallery_file_binding.dart';
import '../modules/gallery_file/views/gallery_file_view.dart';
import '../modules/gallery_image/bindings/gallery_image_binding.dart';
Expand Down Expand Up @@ -602,5 +604,10 @@ class AppPages {
page: () => const PengutusPendingStatsView(),
binding: PengutusPendingStatsBinding(),
),
GetPage(
name: _Paths.DETAIL_AGUNAN,
page: () => const DetailAgunanView(),
binding: DetailAgunanBinding(),
),
];
}
2 changes: 2 additions & 0 deletions lib/app/routes/app_routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ abstract class Routes {
static const PENGUTUS_COMPLETED_LIST = _Paths.PENGUTUS_COMPLETED_LIST;
static const PENGUTUS_PENDING_LIST = _Paths.PENGUTUS_PENDING_LIST;
static const PENGUTUS_PENDING_STATS = _Paths.PENGUTUS_PENDING_STATS;
static const DETAIL_AGUNAN = _Paths.DETAIL_AGUNAN;
}

abstract class _Paths {
Expand Down Expand Up @@ -210,4 +211,5 @@ abstract class _Paths {
static const PENGUTUS_COMPLETED_LIST = '/pengutus-completed-list';
static const PENGUTUS_PENDING_LIST = '/pengutus-pending-list';
static const PENGUTUS_PENDING_STATS = '/pengutus-pending-stats';
static const DETAIL_AGUNAN = '/detail-agunan';
}

1 comment on commit d8e487d

@vercel
Copy link

@vercel vercel bot commented on d8e487d Feb 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.