From 620a43258981cd6676ca0cfb91b6ccee5fdd69b0 Mon Sep 17 00:00:00 2001 From: Novian Andika Date: Fri, 21 Apr 2023 22:22:30 +0700 Subject: [PATCH] feat: final push --- .../reviewer_information.dart | 12 +- .../views/components/list_tile_printing.dart | 378 +++++++++++------- .../print_button.dart | 281 +++++++------ .../widget/reviewer_completed_list_empty.dart | 25 +- .../widget/reviewer_pending_list_empty.dart | 26 +- lib/app/widget/dialog_box.dart | 6 + pubspec.yaml | 2 +- 7 files changed, 440 insertions(+), 290 deletions(-) diff --git a/lib/app/modules/home_reviewer/widget/components/home_reviewer_main_menu/reviewer_information.dart b/lib/app/modules/home_reviewer/widget/components/home_reviewer_main_menu/reviewer_information.dart index cf50ef46..20c50cc0 100644 --- a/lib/app/modules/home_reviewer/widget/components/home_reviewer_main_menu/reviewer_information.dart +++ b/lib/app/modules/home_reviewer/widget/components/home_reviewer_main_menu/reviewer_information.dart @@ -1,9 +1,9 @@ +import 'package:akm/app/common/style.dart'; import 'package:flutter/material.dart'; // 📦 Package imports: import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:get/get.dart'; -import 'package:getwidget/getwidget.dart'; // 🌎 Project imports: import 'package:akm/app/modules/home/controllers/home_controller.dart'; @@ -25,8 +25,8 @@ class ReviewerDeviceInformation extends StatelessWidget { child: Row( children: [ const Icon( - FontAwesomeIcons.check, - color: GFColors.SUCCESS, + FontAwesomeIcons.android, + color: primaryColor, ), const SizedBox( width: 8, @@ -61,7 +61,7 @@ class ReviewerDeviceInformation extends StatelessWidget { ) : const Icon( FontAwesomeIcons.locationDot, - color: GFColors.DANGER, + color: primaryColor, )), const SizedBox( width: 8, @@ -113,8 +113,8 @@ class ReviewerDeviceInformation extends StatelessWidget { ), ) : const Icon( - FontAwesomeIcons.building, - color: GFColors.INFO, + FontAwesomeIcons.locationArrow, + color: primaryColor, )), const SizedBox( width: 8, diff --git a/lib/app/modules/insight_debitur/views/components/list_tile_printing.dart b/lib/app/modules/insight_debitur/views/components/list_tile_printing.dart index ca956b04..7a61e8f3 100644 --- a/lib/app/modules/insight_debitur/views/components/list_tile_printing.dart +++ b/lib/app/modules/insight_debitur/views/components/list_tile_printing.dart @@ -1,5 +1,6 @@ // 🐦 Flutter imports: import 'package:akm/app/modules/insight_debitur/views/components/printing/pk/pk_input.dart'; +import 'package:akm/app/widget/dialog_box.dart'; import 'package:flutter/material.dart'; // 📦 Package imports: @@ -53,19 +54,28 @@ class PrintInput extends StatelessWidget { text: "READY", buttonBoxShadow: true, color: GFColors.SUCCESS, + shape: GFButtonShape.pills, ) : GFButton( onPressed: () { - Get.snackbar( - 'Error', - 'Harap Lengkapi Semua Untuk Melanjutkan', - backgroundColor: Colors.red, - colorText: Colors.white, - ); + // Get.snackbar( + // 'Error', + // 'Harap Lengkapi Semua Untuk Melanjutkan', + // backgroundColor: Colors.red, + // colorText: Colors.white, + // ); + + ErrorDialog( + title: 'Inputan belum lengkap', + desc: 'Harap Lengkapi Semua Untuk Melanjutkan', + context: context, + btnOkOnPress: () {}, + ).show(); }, text: "N/A", buttonBoxShadow: true, color: GFColors.DANGER, + shape: GFButtonShape.pills, ), ); } @@ -106,19 +116,21 @@ class PrintNeraca extends StatelessWidget { text: "READY", buttonBoxShadow: true, color: GFColors.SUCCESS, + shape: GFButtonShape.pills, ) : GFButton( onPressed: () { - Get.snackbar( - 'Error', - 'Data Neraca belum lengkap', - backgroundColor: Colors.red, - colorText: Colors.white, - ); + ErrorDialog( + title: 'Keterangan Neraca belum lengkap', + desc: 'Harap lengkapi untuk melanjutkan', + context: context, + btnOkOnPress: () {}, + ).show(); }, text: "N/A", buttonBoxShadow: true, color: GFColors.DANGER, + shape: GFButtonShape.pills, ), ); } @@ -164,19 +176,21 @@ class PrintUsulanBaru extends StatelessWidget { text: "READY", buttonBoxShadow: true, color: GFColors.SUCCESS, + shape: GFButtonShape.pills, ) : GFButton( onPressed: () { - Get.snackbar( - 'Error', - 'Hara Lengkapi Semua Untuk Melanjutkan', - backgroundColor: Colors.red, - colorText: Colors.white, - ); + ErrorDialog( + title: 'Error', + desc: 'Harap isi semua section untuk melanjutkan', + context: context, + btnOkOnPress: () {}, + ).show(); }, text: "N/A", buttonBoxShadow: true, color: GFColors.DANGER, + shape: GFButtonShape.pills, ), ); } @@ -217,19 +231,21 @@ class PrintRugiLaba extends StatelessWidget { text: "READY", buttonBoxShadow: true, color: GFColors.SUCCESS, + shape: GFButtonShape.pills, ) : GFButton( onPressed: () { - Get.snackbar( - 'Error', - 'Data Laporan Keuangan belum lengkap', - backgroundColor: Colors.red, - colorText: Colors.white, - ); + ErrorDialog( + title: 'Laporan Keuangan belum lengkap', + desc: 'Harap lengkapi untuk melanjutkan', + context: context, + btnOkOnPress: () {}, + ).show(); }, text: "N/A", buttonBoxShadow: true, color: GFColors.DANGER, + shape: GFButtonShape.pills, ), ); } @@ -270,19 +286,21 @@ class PrintAgunan extends StatelessWidget { text: "READY", buttonBoxShadow: true, color: GFColors.SUCCESS, + shape: GFButtonShape.pills, ) : GFButton( onPressed: () { - Get.snackbar( - 'Error', - 'Data Analisa Agunan belum lengkap', - backgroundColor: Colors.red, - colorText: Colors.white, - ); + ErrorDialog( + title: 'Data Agunan belum lengkap', + desc: 'Harap Lengkapi Semua Untuk Melanjutkan', + context: context, + btnOkOnPress: () {}, + ).show(); }, text: "N/A", buttonBoxShadow: true, color: GFColors.DANGER, + shape: GFButtonShape.pills, ), ); } @@ -329,19 +347,22 @@ class PrintPutusan extends StatelessWidget { text: "READY", buttonBoxShadow: true, color: GFColors.SUCCESS, + shape: GFButtonShape.pills, ) : GFButton( onPressed: () { - Get.snackbar( - 'Error', - 'Harap Lengkapi Semua Sebelum Melanjutkan', - backgroundColor: Colors.red, - colorText: Colors.white, - ); + ErrorDialog( + title: 'Error', + desc: + 'Putusan Kredit dapat dibuka setelah di acc oleh komite kredit', + context: context, + btnOkOnPress: () {}, + ).show(); }, text: "N/A", buttonBoxShadow: true, color: GFColors.DANGER, + shape: GFButtonShape.pills, ), ); } @@ -388,19 +409,21 @@ class PrintUsulan extends StatelessWidget { text: "READY", buttonBoxShadow: true, color: GFColors.SUCCESS, + shape: GFButtonShape.pills, ) : GFButton( onPressed: () { - Get.snackbar( - 'Error', - 'Harap Lengkapi Semua Untuk Melanjutkan', - backgroundColor: Colors.red, - colorText: Colors.white, - ); + ErrorDialog( + title: 'Error', + desc: 'Harap lengkapi semua data sebelum melanjutkan', + context: context, + btnOkOnPress: () {}, + ).show(); }, text: "N/A", buttonBoxShadow: true, color: GFColors.DANGER, + shape: GFButtonShape.pills, ), ); } @@ -441,19 +464,21 @@ class PrintKeuangan extends StatelessWidget { text: "READY", buttonBoxShadow: true, color: GFColors.SUCCESS, + shape: GFButtonShape.pills, ) : GFButton( onPressed: () { - Get.snackbar( - 'Error', - 'Data Keuangan belum lengkap', - backgroundColor: Colors.red, - colorText: Colors.white, - ); + ErrorDialog( + title: 'Data Keuangan belum lengkap', + desc: 'Harap Lengkapi Semua Untuk Melanjutkan', + context: context, + btnOkOnPress: () {}, + ).show(); }, text: "N/A", buttonBoxShadow: true, color: GFColors.DANGER, + shape: GFButtonShape.pills, ), ); } @@ -494,6 +519,7 @@ class ModelPrint extends StatelessWidget { text: "READY", buttonBoxShadow: true, color: GFColors.SUCCESS, + shape: GFButtonShape.pills, ), ); } @@ -534,19 +560,21 @@ class BisnisPrint extends StatelessWidget { text: "READY", buttonBoxShadow: true, color: GFColors.SUCCESS, + shape: GFButtonShape.pills, ) : GFButton( onPressed: () { - Get.snackbar( - 'Error', - 'Data Bisnis belum lengkap', - backgroundColor: Colors.red, - colorText: Colors.white, - ); + ErrorDialog( + title: 'Data Bisnis belum lengkap', + desc: 'Harap Lengkapi Semua Untuk Melanjutkan', + context: context, + btnOkOnPress: () {}, + ).show(); }, text: "N/A", buttonBoxShadow: true, color: GFColors.DANGER, + shape: GFButtonShape.pills, ), ); } @@ -587,19 +615,21 @@ class KarakterPrint extends StatelessWidget { text: "READY", buttonBoxShadow: true, color: GFColors.SUCCESS, + shape: GFButtonShape.pills, ) : GFButton( onPressed: () { - Get.snackbar( - 'Error', - 'Data Karakter belum lengkap', - backgroundColor: Colors.red, - colorText: Colors.white, - ); + ErrorDialog( + title: 'Data Karakter belum lengkap', + desc: 'Harap Lengkapi Semua Untuk Melanjutkan', + context: context, + btnOkOnPress: () {}, + ).show(); }, text: "N/A", buttonBoxShadow: true, color: GFColors.DANGER, + shape: GFButtonShape.pills, ), ); } @@ -640,19 +670,21 @@ class JenisUsahaPrint extends StatelessWidget { text: "READY", buttonBoxShadow: true, color: GFColors.SUCCESS, + shape: GFButtonShape.pills, ) : GFButton( onPressed: () { - Get.snackbar( - 'Error', - 'Data Jenis Usaha belum lengkap', - backgroundColor: Colors.red, - colorText: Colors.white, - ); + ErrorDialog( + title: 'Data Jenis Usaha belum lengkap', + desc: 'Harap Lengkapi Semua Untuk Melanjutkan', + context: context, + btnOkOnPress: () {}, + ).show(); }, text: "N/A", buttonBoxShadow: true, color: GFColors.DANGER, + shape: GFButtonShape.pills, ), ); } @@ -668,31 +700,53 @@ class SlikPrint extends StatelessWidget { @override Widget build(BuildContext context) { return GFListTile( - title: const Text( - 'Pernyataan SLIK', - style: TextStyle( - color: primaryColor, - fontSize: 25, - fontWeight: FontWeight.w500, - ), + title: const Text( + 'Pernyataan SLIK', + style: TextStyle( + color: primaryColor, + fontSize: 25, + fontWeight: FontWeight.w500, ), - avatar: const GFAvatar( - backgroundColor: primaryColor, - child: Icon( - FontAwesomeIcons.squarespace, - color: secondaryColor, - ), + ), + avatar: const GFAvatar( + backgroundColor: primaryColor, + child: Icon( + FontAwesomeIcons.squarespace, + color: secondaryColor, ), - subTitleText: 'Print Pernyaataan SLIK', - icon: GFButton( - onPressed: () { - Get.toNamed(Routes.SLIK_PRINTING, - arguments: controller.insightDebitur.value); - }, - text: "READY", - buttonBoxShadow: true, - color: GFColors.SUCCESS, - )); + ), + subTitleText: 'Print Pernyaataan SLIK', + icon: controller.insightDebitur.value.analisaKeuangan != null && + controller.insightDebitur.value.analisaAgunan != null && + controller.insightDebitur.value.analisaBisnis != null && + controller.insightDebitur.value.analisaJenisUsaha != null && + controller.insightDebitur.value.analisaKarakter != null && + controller.insightDebitur.value.syaratLain!.isNotEmpty + ? GFButton( + onPressed: () { + Get.toNamed(Routes.SLIK_PRINTING, + arguments: controller.insightDebitur.value); + }, + text: "READY", + buttonBoxShadow: true, + color: GFColors.SUCCESS, + shape: GFButtonShape.pills, + ) + : GFButton( + onPressed: () { + ErrorDialog( + title: 'Data SLIK belum lengkap', + desc: 'Harap Lengkapi Semua Untuk Melanjutkan', + context: context, + btnOkOnPress: () {}, + ).show(); + }, + text: "N/A", + buttonBoxShadow: true, + color: GFColors.DANGER, + shape: GFButtonShape.pills, + ), + ); } } @@ -706,31 +760,53 @@ class SpkkPrint extends StatelessWidget { @override Widget build(BuildContext context) { return GFListTile( - title: const Text( - 'SPKK', - style: TextStyle( - color: primaryColor, - fontSize: 25, - fontWeight: FontWeight.w500, - ), + title: const Text( + 'SPKK', + style: TextStyle( + color: primaryColor, + fontSize: 25, + fontWeight: FontWeight.w500, ), - avatar: const GFAvatar( - backgroundColor: primaryColor, - child: Icon( - FontAwesomeIcons.medium, - color: secondaryColor, - ), + ), + avatar: const GFAvatar( + backgroundColor: primaryColor, + child: Icon( + FontAwesomeIcons.medium, + color: secondaryColor, ), - subTitleText: 'Print SPKK', - icon: GFButton( - onPressed: () { - Get.toNamed(Routes.SPKK_PRINTING, - arguments: controller.insightDebitur.value); - }, - text: "READY", - buttonBoxShadow: true, - color: GFColors.SUCCESS, - )); + ), + subTitleText: 'Print SPKK', + icon: controller.insightDebitur.value.analisaKeuangan != null && + controller.insightDebitur.value.analisaAgunan != null && + controller.insightDebitur.value.analisaBisnis != null && + controller.insightDebitur.value.analisaJenisUsaha != null && + controller.insightDebitur.value.analisaKarakter != null && + controller.insightDebitur.value.syaratLain!.isNotEmpty + ? GFButton( + onPressed: () { + Get.toNamed(Routes.SPKK_PRINTING, + arguments: controller.insightDebitur.value); + }, + text: "READY", + buttonBoxShadow: true, + color: GFColors.SUCCESS, + shape: GFButtonShape.pills, + ) + : GFButton( + onPressed: () { + ErrorDialog( + title: 'Data SPKK belum lengkap', + desc: 'Harap Lengkapi Semua Untuk Melanjutkan', + context: context, + btnOkOnPress: () {}, + ).show(); + }, + text: "N/A", + buttonBoxShadow: true, + color: GFColors.DANGER, + shape: GFButtonShape.pills, + ), + ); } } @@ -744,35 +820,57 @@ class PkPrint extends StatelessWidget { @override Widget build(BuildContext context) { return GFListTile( - title: const Text( - 'Perjanjian Kredit', - style: TextStyle( - color: primaryColor, - fontSize: 25, - fontWeight: FontWeight.w500, - ), + title: const Text( + 'Perjanjian Kredit', + style: TextStyle( + color: primaryColor, + fontSize: 25, + fontWeight: FontWeight.w500, ), - avatar: const GFAvatar( - backgroundColor: primaryColor, - child: Icon( - FontAwesomeIcons.github, - color: secondaryColor, - ), + ), + avatar: const GFAvatar( + backgroundColor: primaryColor, + child: Icon( + FontAwesomeIcons.github, + color: secondaryColor, ), - subTitleText: 'Print Perjanjian Kredit', - icon: GFButton( - onPressed: () { - // Get.toNamed(Routes.PK_PRINTING, - // arguments: controller.insightDebitur.value); - - Get.to( - () => const InputBeforePk(), - arguments: controller.insightDebitur.value, - ); - }, - text: "READY", - buttonBoxShadow: true, - color: GFColors.SUCCESS, - )); + ), + subTitleText: 'Print Perjanjian Kredit', + icon: controller.insightDebitur.value.analisaKeuangan != null && + controller.insightDebitur.value.analisaAgunan != null && + controller.insightDebitur.value.analisaBisnis != null && + controller.insightDebitur.value.analisaJenisUsaha != null && + controller.insightDebitur.value.analisaKarakter != null && + controller.insightDebitur.value.syaratLain!.isNotEmpty + ? GFButton( + onPressed: () { + // Get.toNamed(Routes.PK_PRINTING, + // arguments: controller.insightDebitur.value); + + Get.to( + () => const InputBeforePk(), + arguments: controller.insightDebitur.value, + ); + }, + text: "READY", + buttonBoxShadow: true, + color: GFColors.SUCCESS, + shape: GFButtonShape.pills, + ) + : GFButton( + onPressed: () { + ErrorDialog( + title: 'Data PK belum lengkap', + desc: 'Harap Lengkapi Semua Untuk Melanjutkan', + context: context, + btnOkOnPress: () {}, + ).show(); + }, + text: "N/A", + buttonBoxShadow: true, + color: GFColors.DANGER, + shape: GFButtonShape.pills, + ), + ); } } diff --git a/lib/app/modules/insight_debitur/widget/components/insight_debitur_top_section/print_button.dart b/lib/app/modules/insight_debitur/widget/components/insight_debitur_top_section/print_button.dart index 1988db11..99e05c51 100644 --- a/lib/app/modules/insight_debitur/widget/components/insight_debitur_top_section/print_button.dart +++ b/lib/app/modules/insight_debitur/widget/components/insight_debitur_top_section/print_button.dart @@ -86,139 +86,174 @@ class PrintButton extends StatelessWidget { ), ), Expanded( - child: ListView( - children: [ - Obx( - () { - if (analisaKeuanganController - .isAnalisaKeuanganProcessing.value) { + child: Scrollbar( + child: ListView( + children: [ + Obx( + () { + if (analisaKeuanganController + .isAnalisaKeuanganProcessing.value) { + return const Center( + child: CircularProgressIndicator(), + ); + } else { + return PrintInput(); + } + }, + ), + Obx( + () { + if (rugiLabaController.isRugiLabaProcessing.value) { + return const Center( + child: CircularProgressIndicator(), + ); + } else { + return PrintRugiLaba(); + } + }, + ), + Obx( + () { + if (neracaController.isNeracaProcessing.value) { + return const Center( + child: CircularProgressIndicator(), + ); + } else { + return PrintNeraca(); + } + }, + ), + Obx( + () { + if (analisaKeuanganController + .isAnalisaKeuanganProcessing.value) { + return const Center( + child: CircularProgressIndicator(), + ); + } else { + return PrintKeuangan(); + } + }, + ), + Obx( + () { + if (analisaBisnisController + .isAnalisaBisnisProcessing.value) { + return const Center( + child: CircularProgressIndicator(), + ); + } else { + return BisnisPrint(); + } + }, + ), + Obx(() { + if (analisaKarakterController + .isAnalisaKarakterProcessing.value) { return const Center( child: CircularProgressIndicator(), ); } else { - return PrintInput(); + return KarakterPrint(); } - }, - ), - SlikPrint(), - SpkkPrint(), - PkPrint(), - Obx( - () { - if (rugiLabaController.isRugiLabaProcessing.value) { - return const Center( - child: CircularProgressIndicator(), - ); - } else { - return PrintRugiLaba(); - } - }, - ), - Obx( - () { - if (neracaController.isNeracaProcessing.value) { + }), + Obx(() { + if (analisaAgunanController + .isAnalisaAgunanProcessing.value) { return const Center( child: CircularProgressIndicator(), ); } else { - return PrintNeraca(); + return PrintAgunan(); } - }, - ), - Obx( - () { - if (analisaKeuanganController - .isAnalisaKeuanganProcessing.value) { - return const Center( - child: CircularProgressIndicator(), - ); - } else { - return PrintKeuangan(); - } - }, - ), - Obx( - () { - if (analisaBisnisController - .isAnalisaBisnisProcessing.value) { - return const Center( - child: CircularProgressIndicator(), - ); - } else { - return BisnisPrint(); - } - }, - ), - Obx(() { - if (analisaKarakterController - .isAnalisaKarakterProcessing.value) { - return const Center( - child: CircularProgressIndicator(), - ); - } else { - return KarakterPrint(); - } - }), - Obx(() { - if (analisaAgunanController - .isAnalisaAgunanProcessing.value) { - return const Center( - child: CircularProgressIndicator(), - ); - } else { - return PrintAgunan(); - } - }), - Obx( - () { - if (analisaJenisUsahaController - .isAnalisaUsahaProcessing.value) { - return const Center( - child: CircularProgressIndicator(), - ); - } else { - return JenisUsahaPrint(); - } - }, - ), - ModelPrint(controller: controller), - Obx( - () { - if (analisaKeuanganController - .isAnalisaKeuanganProcessing.value) { - return const Center( - child: CircularProgressIndicator(), - ); - } else { - return PrintUsulanBaru(); - } - }, - ), - Obx( - () { - if (analisaKeuanganController - .isAnalisaKeuanganProcessing.value) { - return const Center( - child: CircularProgressIndicator(), - ); - } else { - return PrintUsulan(); - } - }, - ), - Obx( - () { - if (analisaKeuanganController - .isAnalisaKeuanganProcessing.value) { - return const Center( - child: CircularProgressIndicator(), - ); - } else { - return PrintPutusan(); - } - }, - ), - ], + }), + Obx( + () { + if (analisaJenisUsahaController + .isAnalisaUsahaProcessing.value) { + return const Center( + child: CircularProgressIndicator(), + ); + } else { + return JenisUsahaPrint(); + } + }, + ), + ModelPrint(controller: controller), + Obx( + () { + if (analisaKeuanganController + .isAnalisaKeuanganProcessing.value) { + return const Center( + child: CircularProgressIndicator(), + ); + } else { + return PrintUsulanBaru(); + } + }, + ), + Obx( + () { + if (analisaKeuanganController + .isAnalisaKeuanganProcessing.value) { + return const Center( + child: CircularProgressIndicator(), + ); + } else { + return PrintUsulan(); + } + }, + ), + Obx( + () { + if (analisaKeuanganController + .isAnalisaKeuanganProcessing.value) { + return const Center( + child: CircularProgressIndicator(), + ); + } else { + return PrintPutusan(); + } + }, + ), + Obx( + () { + if (analisaKeuanganController + .isAnalisaKeuanganProcessing.value) { + return const Center( + child: CircularProgressIndicator(), + ); + } else { + return SlikPrint(); + } + }, + ), + Obx( + () { + if (analisaKeuanganController + .isAnalisaKeuanganProcessing.value) { + return const Center( + child: CircularProgressIndicator(), + ); + } else { + return SpkkPrint(); + } + }, + ), + Obx( + () { + if (analisaKeuanganController + .isAnalisaKeuanganProcessing.value) { + return const Center( + child: CircularProgressIndicator(), + ); + } else { + return PkPrint(); + } + }, + ), + ], + ), ), ), ], diff --git a/lib/app/modules/reviewer_completed_list/widget/reviewer_completed_list_empty.dart b/lib/app/modules/reviewer_completed_list/widget/reviewer_completed_list_empty.dart index 45adcaa1..7e757747 100644 --- a/lib/app/modules/reviewer_completed_list/widget/reviewer_completed_list_empty.dart +++ b/lib/app/modules/reviewer_completed_list/widget/reviewer_completed_list_empty.dart @@ -1,3 +1,4 @@ +import 'package:akm/app/common/style.dart'; import 'package:flutter/material.dart'; import 'package:lottie/lottie.dart'; @@ -37,7 +38,8 @@ class EmptyCompletedList extends StatelessWidget { child: Lottie.asset( 'assets/images/home/empty.json', frameRate: FrameRate.max, - fit: BoxFit.cover, + fit: BoxFit.contain, + height: 350, repeat: true, errorBuilder: (context, error, stackTrace) { return const Text( @@ -53,20 +55,23 @@ class EmptyCompletedList extends StatelessWidget { child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - const Text( - 'Belum ada pengajuan yang selesai direview', - style: TextStyle( - color: Colors.black87, - fontSize: 22, - fontWeight: FontWeight.normal, - letterSpacing: 1.2, + const Padding( + padding: EdgeInsets.symmetric(horizontal: 20), + child: Text( + 'Belum ada pengajuan yang selesai direview', + style: TextStyle( + color: Colors.black87, + fontSize: 22, + fontWeight: FontWeight.normal, + letterSpacing: 1.2, + height: 1.5), + textAlign: TextAlign.center, ), - textAlign: TextAlign.center, ), const SizedBox(height: 20), TextButton( style: TextButton.styleFrom( - backgroundColor: Colors.blueAccent, + backgroundColor: primaryColor, padding: const EdgeInsets.symmetric( horizontal: 30, vertical: 15), shape: RoundedRectangleBorder( diff --git a/lib/app/modules/reviewer_pending_list/widget/reviewer_pending_list_empty.dart b/lib/app/modules/reviewer_pending_list/widget/reviewer_pending_list_empty.dart index dcc8c3e2..5b326bc1 100644 --- a/lib/app/modules/reviewer_pending_list/widget/reviewer_pending_list_empty.dart +++ b/lib/app/modules/reviewer_pending_list/widget/reviewer_pending_list_empty.dart @@ -1,3 +1,4 @@ +import 'package:akm/app/common/style.dart'; import 'package:flutter/material.dart'; import 'package:lottie/lottie.dart'; @@ -37,7 +38,8 @@ class EmptyPendingList extends StatelessWidget { child: Lottie.asset( 'assets/images/home/empty.json', frameRate: FrameRate.max, - fit: BoxFit.cover, + fit: BoxFit.contain, + height: 350, repeat: true, errorBuilder: (context, error, stackTrace) { return const Text( @@ -53,20 +55,24 @@ class EmptyPendingList extends StatelessWidget { child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - const Text( - 'Belum ada pengajuan yang perlu direview', - style: TextStyle( - color: Colors.black87, - fontSize: 22, - fontWeight: FontWeight.normal, - letterSpacing: 1.2, + const Padding( + padding: EdgeInsets.symmetric(horizontal: 20), + child: Text( + 'Belum ada pengajuan yang perlu direview', + style: TextStyle( + color: Colors.black87, + fontSize: 22, + fontWeight: FontWeight.normal, + letterSpacing: 1.2, + height: 1.5, + ), + textAlign: TextAlign.center, ), - textAlign: TextAlign.center, ), const SizedBox(height: 20), TextButton( style: TextButton.styleFrom( - backgroundColor: Colors.blueAccent, + backgroundColor: primaryColor, padding: const EdgeInsets.symmetric( horizontal: 30, vertical: 15), shape: RoundedRectangleBorder( diff --git a/lib/app/widget/dialog_box.dart b/lib/app/widget/dialog_box.dart index e7a8d597..1f7c3aec 100644 --- a/lib/app/widget/dialog_box.dart +++ b/lib/app/widget/dialog_box.dart @@ -80,6 +80,9 @@ class PrompDialog extends AwesomeDialog { }) : super( context: context, animType: AnimType.scale, + padding: const EdgeInsets.symmetric( + horizontal: 20, + ), dialogType: DialogType.question, title: title, titleTextStyle: GoogleFonts.poppins( @@ -128,6 +131,9 @@ class InfoDialog extends AwesomeDialog { }) : super( context: context, animType: AnimType.scale, + padding: const EdgeInsets.symmetric( + horizontal: 20, + ), dialogType: DialogType.warning, title: title, titleTextStyle: GoogleFonts.poppins( diff --git a/pubspec.yaml b/pubspec.yaml index 0d05cb98..90849122 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: akm -version: 1.1.18+36 +version: 1.1.19+39 publish_to: none description: Mobile app untuk Analisis Kredit Mikro built with Flutter and NodeJS. environment: