Skip to content

Commit

Permalink
feat: pengutus done
Browse files Browse the repository at this point in the history
  • Loading branch information
fleetimee committed Apr 26, 2023
1 parent 2afe5fd commit db194c9
Show file tree
Hide file tree
Showing 35 changed files with 500 additions and 391 deletions.
19 changes: 13 additions & 6 deletions lib/app/modules/debitur_deploy/views/debitur_deploy_view.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// 🐦 Flutter imports:
import 'package:akm/app/common/style.dart';
import 'package:akm/app/modules/debitur_deploy/widget/debitur_deploy_bottom_navbar.dart';
import 'package:akm/app/modules/debitur_deploy/widget/debitur_deploy_create_form.dart';
import 'package:flutter/material.dart';
Expand Down Expand Up @@ -30,13 +31,19 @@ class DebiturDeployView extends GetView<DebiturDeployController> {
appBar: AppBar(
title: const Text('Input Debitur'),
),
body: SingleChildScrollView(
body: RawScrollbar(
controller: scrollController,
child: SafeArea(
child: Container(
margin: const EdgeInsets.all(16),
child: DebiturDeployCreateForm(
controller: controller,
thumbColor: primaryColor,
radius: const Radius.circular(16),
thickness: 7,
child: SingleChildScrollView(
controller: scrollController,
child: SafeArea(
child: Container(
margin: const EdgeInsets.all(16),
child: DebiturDeployCreateForm(
controller: controller,
),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class ChangeOffice extends StatelessWidget {
vertical: 25,
),
focusColor: Colors.red,
fillColor: Colors.grey.shade400,
fillColor: Colors.grey.shade300,
hoverColor: Colors.red,
filled: true,
focusedBorder: OutlineInputBorder(
Expand Down Expand Up @@ -165,7 +165,7 @@ class ChangeOffice extends StatelessWidget {
vertical: 25,
),
focusColor: Colors.red,
fillColor: Colors.grey.shade400,
fillColor: Colors.grey.shade300,
hoverColor: Colors.red,
filled: true,
focusedBorder: OutlineInputBorder(
Expand Down
61 changes: 31 additions & 30 deletions lib/app/modules/home/views/components/home_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import 'package:flutter/material.dart';
// 📦 Package imports:
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:get/get.dart';
import 'package:getwidget/colors/gf_color.dart';

// 🌎 Project imports:
import '../../controllers/home_controller.dart';
Expand Down Expand Up @@ -228,8 +227,8 @@ class StatusWidget extends StatelessWidget {
child: Row(
children: [
const Icon(
FontAwesomeIcons.check,
color: GFColors.SUCCESS,
FontAwesomeIcons.android,
color: secondaryColor,
),
const SizedBox(
width: 8,
Expand Down Expand Up @@ -264,7 +263,7 @@ class StatusWidget extends StatelessWidget {
)
: const Icon(
FontAwesomeIcons.locationDot,
color: GFColors.DANGER,
color: secondaryColor,
)),
const SizedBox(
width: 8,
Expand Down Expand Up @@ -318,40 +317,42 @@ class StatusWidget extends StatelessWidget {
),
)
: const Icon(
FontAwesomeIcons.building,
color: GFColors.INFO,
FontAwesomeIcons.locationArrow,
color: secondaryColor,
)),
const SizedBox(
width: 8,
),
Obx(() => controller.mainBranch.value == '...' &&
controller.helperBranch.value == '...'
? SizedBox(
child: Row(
children: const [
Text(
'...',
style: TextStyle(
color: Colors.white,
fontSize: 20,
Obx(
() => controller.mainBranch.value == '...' &&
controller.helperBranch.value == '...'
? SizedBox(
child: Row(
children: const [
Text(
'...',
style: TextStyle(
color: Colors.white,
fontSize: 20,
),
),
SizedBox(
width: 20,
),
],
),
)
: SizedBox(
width: 400,
child: Text(
'${controller.mainBranch} / ${controller.helperBranch}',
style: const TextStyle(
color: Colors.white,
fontSize: 20,
),
SizedBox(
width: 20,
),
],
),
)
: SizedBox(
width: 400,
child: Text(
'${controller.mainBranch} / ${controller.helperBranch}',
style: const TextStyle(
color: Colors.white,
fontSize: 20,
),
),
)),
),
],
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class SetPassword extends StatelessWidget {
contentPadding:
const EdgeInsets.symmetric(vertical: 25),
focusColor: Colors.red,
fillColor: Colors.grey.shade400,
fillColor: Colors.grey.shade300,
hoverColor: Colors.red,
filled: true,
focusedBorder: OutlineInputBorder(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class RefreshToken extends StatelessWidget {
vertical: 25,
),
focusColor: Colors.red,
fillColor: Colors.grey.shade400,
fillColor: Colors.grey.shade300,
hoverColor: Colors.red,
filled: true,
focusedBorder: OutlineInputBorder(
Expand Down Expand Up @@ -141,7 +141,7 @@ class RefreshToken extends StatelessWidget {
contentPadding:
const EdgeInsets.symmetric(vertical: 25),
focusColor: Colors.red,
fillColor: Colors.grey.shade400,
fillColor: Colors.grey.shade300,
hoverColor: Colors.red,
filled: true,
focusedBorder: OutlineInputBorder(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class NikSearchForm extends StatelessWidget {
vertical: 25,
),
focusColor: Colors.red,
fillColor: Colors.grey.shade400,
fillColor: Colors.grey.shade300,
hoverColor: Colors.red,
filled: true,
focusedBorder: OutlineInputBorder(
Expand Down
146 changes: 86 additions & 60 deletions lib/app/modules/home/widget/home_history_and_submission.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,52 +76,65 @@ class _HomeHistoryAndSubmissionState extends State<HomeHistoryAndSubmission> {
);
} else {
if (widget.controller.listMyInput.isNotEmpty) {
return Column(
return Stack(
children: [
BootstrapAlert(
visible: _showAlert,
status: AlertStatus.success,
text:
'Ini merupakan daftar riwayat penginputan debitur yang telah anda lakukan yang diurutkan berdasarkan alpabet',
isDismissible: true,
leadingIcon: Icons.people_outline,
borderRadius: const BorderRadius.all(
Radius.circular(10),
),
margin: const EdgeInsets.all(10),
onDismissed: () {},
),
BootstrapAlert(
visible: _showAlert,
status: AlertStatus.primary,
text:
'Untuk fitur filter, sorting, dan pencarian, silahkan klik floating action button yang ada di pojok kanan bawah',
isDismissible: true,
leadingIcon: Icons.info_outline,
borderRadius: const BorderRadius.all(
Radius.circular(10),
),
margin: const EdgeInsets.all(10),
onDismissed: () {},
),
BootstrapAlert(
visible: _showAlert,
status: AlertStatus.warning,
text:
'Untuk melihat detail debitur tap atau tekan pada card debitur yang diinginkan',
isDismissible: true,
leadingIcon: Icons.insert_comment_outlined,
borderRadius: const BorderRadius.all(
Radius.circular(10),
),
margin: const EdgeInsets.all(10),
onDismissed: () {},
),
Expanded(
child: ListRiwayatInput(
controller: widget.controller,
Align(
alignment: Alignment.bottomCenter,
child: Image.asset(
"assets/images/home/reviewer_completed.png",
height:
MediaQuery.of(context).size.height * 0.5,
fit: BoxFit.contain,
),
),
Column(
children: [
BootstrapAlert(
visible: _showAlert,
status: AlertStatus.success,
text:
'Ini merupakan daftar riwayat penginputan debitur yang telah anda lakukan yang diurutkan berdasarkan alpabet',
isDismissible: true,
leadingIcon: Icons.people_outline,
borderRadius: const BorderRadius.all(
Radius.circular(10),
),
margin: const EdgeInsets.all(10),
onDismissed: () {},
),
BootstrapAlert(
visible: _showAlert,
status: AlertStatus.primary,
text:
'Untuk fitur filter, sorting, dan pencarian, silahkan klik floating action button yang ada di pojok kanan bawah',
isDismissible: true,
leadingIcon: Icons.info_outline,
borderRadius: const BorderRadius.all(
Radius.circular(10),
),
margin: const EdgeInsets.all(10),
onDismissed: () {},
),
BootstrapAlert(
visible: _showAlert,
status: AlertStatus.warning,
text:
'Untuk melihat detail debitur tap atau tekan pada card debitur yang diinginkan',
isDismissible: true,
leadingIcon: Icons.insert_comment_outlined,
borderRadius: const BorderRadius.all(
Radius.circular(10),
),
margin: const EdgeInsets.all(10),
onDismissed: () {},
),
Expanded(
child: ListRiwayatInput(
controller: widget.controller,
),
),
],
)
],
);
} else {
Expand All @@ -142,26 +155,39 @@ class _HomeHistoryAndSubmissionState extends State<HomeHistoryAndSubmission> {
);
} else {
if (widget.controller.listMySubmission.isNotEmpty) {
return Column(
return Stack(
children: [
BootstrapAlert(
visible: _showAlert,
status: AlertStatus.primary,
text:
'Ini merupakan daftar riwayat pengajuan debitur yang telah anda lakukan yang diurutkan berdasarkan alpabet',
isDismissible: true,
leadingIcon: Icons.info_outline,
borderRadius: const BorderRadius.all(
Radius.circular(10),
),
margin: const EdgeInsets.all(10),
onDismissed: () {},
),
Expanded(
child: ListRiwayatPengajuan(
controller: widget.controller,
Align(
alignment: Alignment.bottomCenter,
child: Image.asset(
"assets/images/home/reviewer_completed.png",
height:
MediaQuery.of(context).size.height * 0.5,
fit: BoxFit.contain,
),
),
Column(
children: [
BootstrapAlert(
visible: _showAlert,
status: AlertStatus.primary,
text:
'Ini merupakan daftar riwayat pengajuan debitur yang telah anda lakukan yang diurutkan berdasarkan alpabet',
isDismissible: true,
leadingIcon: Icons.info_outline,
borderRadius: const BorderRadius.all(
Radius.circular(10),
),
margin: const EdgeInsets.all(10),
onDismissed: () {},
),
Expanded(
child: ListRiwayatPengajuan(
controller: widget.controller,
),
),
],
)
],
);
} else {
Expand Down
Loading

0 comments on commit db194c9

Please sign in to comment.