Fakultas Ilmu Komputer UI

Commit fc700584 authored by Muhammad Farhan Ghaffar's avatar Muhammad Farhan Ghaffar
Browse files

pulling from finalisasiHabel and fixing button checkpoint

parents c0535a6f 6ba140ad
Pipeline #83723 passed with stages
in 8 minutes and 3 seconds
......@@ -704,7 +704,7 @@
"languageVersion": "2.7"
}
],
"generated": "2021-06-10T16:51:04.037068Z",
"generated": "2021-06-26T17:14:18.119127Z",
"generator": "pub",
"generatorVersion": "2.13.0"
}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_keyboard_visibility","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":[]},{"name":"path_provider","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"android":[{"name":"flutter_keyboard_visibility","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_android_lifecycle-2.0.1\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-2.0.0\\\\","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-2.0.0\\\\","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_windows-2.0.0\\\\","dependencies":[]}],"web":[{"name":"flutter_keyboard_visibility_web","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility_web-2.0.0\\\\","dependencies":[]},{"name":"image_picker_for_web","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker_for_web-2.0.0\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_keyboard_visibility","dependencies":["flutter_keyboard_visibility_web"]},{"name":"flutter_keyboard_visibility_web","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_secure_storage","dependencies":[]},{"name":"image_picker","dependencies":["flutter_plugin_android_lifecycle","image_picker_for_web"]},{"name":"image_picker_for_web","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux","path_provider_windows"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2021-06-26 22:14:27.589846","version":"2.1.0-12.1.pre"}
\ No newline at end of file
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_keyboard_visibility","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":[]},{"name":"path_provider","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"android":[{"name":"flutter_keyboard_visibility","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_android_lifecycle-2.0.1\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-2.0.0\\\\","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-2.0.0\\\\","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_windows-2.0.0\\\\","dependencies":[]}],"web":[{"name":"flutter_keyboard_visibility_web","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility_web-2.0.0\\\\","dependencies":[]},{"name":"image_picker_for_web","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker_for_web-2.0.0\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_keyboard_visibility","dependencies":["flutter_keyboard_visibility_web"]},{"name":"flutter_keyboard_visibility_web","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_secure_storage","dependencies":[]},{"name":"image_picker","dependencies":["flutter_plugin_android_lifecycle","image_picker_for_web"]},{"name":"image_picker_for_web","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux","path_provider_windows"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2021-06-27 19:38:57.585871","version":"2.1.0-12.1.pre"}
\ No newline at end of file
......@@ -3,7 +3,7 @@
#
# For more info see: https://dart.dev/go/dot-packages-deprecation
#
# Generated by pub on 2021-06-10 23:51:03.951294.
# Generated by pub on 2021-06-27 00:14:17.947590.
_fe_analyzer_shared:file:///D:/src/flutter/.pub-cache/hosted/pub.dartlang.org/_fe_analyzer_shared-14.0.0/lib/
analyzer:file:///D:/src/flutter/.pub-cache/hosted/pub.dartlang.org/analyzer-0.41.2/lib/
args:file:///D:/src/flutter/.pub-cache/hosted/pub.dartlang.org/args-2.0.0/lib/
......
// This is a generated file; do not edit or check into version control.
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
FLUTTER_ROOT=/Users/ferdisungkar/flutter
FLUTTER_APPLICATION_PATH=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape
FLUTTER_TARGET=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape/lib/main.dart
......@@ -19,12 +20,16 @@ FLUTTER_APPLICATION_PATH=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia
FLUTTER_TARGET=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape/lib/main.dart
>>>>>>> 91daa656c5e94ce17276f720ff6972311abf7c69
>>>>>>> 0b764942660bfa83f5e9ea7e682f8641f77f4063
=======
FLUTTER_ROOT=C:\flutter\flutter
FLUTTER_APPLICATION_PATH=E:\Fasilkom\Semester 6\Proyek Perangkat Lunak\biodata2\ppl2021-d-slhape
FLUTTER_TARGET=lib\main.dart
>>>>>>> 6ba140add67633bd5eaa17ae4e8115b8878ee220
FLUTTER_BUILD_DIR=build
SYMROOT=${SOURCE_ROOT}/../build/ios
SYMROOT=${SOURCE_ROOT}/../build\ios
FLUTTER_BUILD_NAME=1.0.0
FLUTTER_BUILD_NUMBER=1
DART_DEFINES=flutter.inspector.structuredErrors%3Dtrue
DART_OBFUSCATION=false
TRACK_WIDGET_CREATION=true
TRACK_WIDGET_CREATION=false
TREE_SHAKE_ICONS=false
PACKAGE_CONFIG=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape/.dart_tool/package_config.json
PACKAGE_CONFIG=.packages
......@@ -2,6 +2,7 @@
# This is a generated file; do not edit or check into version control.
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
export "FLUTTER_ROOT=/Users/ferdisungkar/flutter"
export "FLUTTER_APPLICATION_PATH=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape"
export "FLUTTER_TARGET=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape/lib/main.dart"
......@@ -20,12 +21,16 @@ export "FLUTTER_APPLICATION_PATH=/Users/ferdisungkar/Desktop/Files/Universitas-I
export "FLUTTER_TARGET=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape/lib/main.dart"
>>>>>>> 91daa656c5e94ce17276f720ff6972311abf7c69
>>>>>>> 0b764942660bfa83f5e9ea7e682f8641f77f4063
=======
export "FLUTTER_ROOT=C:\flutter\flutter"
export "FLUTTER_APPLICATION_PATH=E:\Fasilkom\Semester 6\Proyek Perangkat Lunak\biodata2\ppl2021-d-slhape"
export "FLUTTER_TARGET=lib\main.dart"
>>>>>>> 6ba140add67633bd5eaa17ae4e8115b8878ee220
export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build/ios"
export "SYMROOT=${SOURCE_ROOT}/../build\ios"
export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1"
export "DART_DEFINES=flutter.inspector.structuredErrors%3Dtrue"
export "DART_OBFUSCATION=false"
export "TRACK_WIDGET_CREATION=true"
export "TRACK_WIDGET_CREATION=false"
export "TREE_SHAKE_ICONS=false"
export "PACKAGE_CONFIG=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape/.dart_tool/package_config.json"
export "PACKAGE_CONFIG=.packages"
......@@ -19,9 +19,12 @@ class HomeKYC extends StatefulWidget {
class _HomeKYCState extends State<HomeKYC> {
Future<EquityOfferings> futureEquities;
bool alreadyFilledSection = false;
void initState() {
super.initState();
futureEquities = Api().getEquities();
checkUser();
}
Widget buildUkmCarousel(BuildContext context,
......@@ -384,7 +387,7 @@ class _HomeKYCState extends State<HomeKYC> {
key: Key('wholePageColumn'),
crossAxisAlignment: CrossAxisAlignment.start,
children: [
registeredUser(context),
getCard(),
Container(
alignment: Alignment.center,
key: Key('containerPenawaranAndLihatSemua'),
......@@ -448,4 +451,31 @@ class _HomeKYCState extends State<HomeKYC> {
),
);
}
Future checkUser() async {
final List<dynamic> getMemberAttribute = await Api().getMemberAttribute();
for (var i = 0; i < getMemberAttribute.length; i++) {
if (getMemberAttribute[i]['attribute_name'] == 'kyc_progress') {
var map = (getMemberAttribute[i] as Map<String, dynamic>);
var val = (map)['attribute_value'];
var str = val.substring(1, val.length - 1);
var step1 = str.split(",")[4];
var value = step1.substring(8);
if (value == "true") {
setState(() {
alreadyFilledSection = true;
});
}
}
}
}
Widget getCard() {
if (alreadyFilledSection == true) {
return registeredUser(context);
} else {
return unregisteredUser(context);
}
}
}
This diff is collapsed.
......@@ -2,9 +2,11 @@ import 'package:flutter/material.dart';
import 'package:fundex_app/api/api.dart';
import 'package:fundex_app/assets/colors.dart';
import 'package:flutter_typeahead/flutter_typeahead.dart';
import 'package:fundex_app/pages/business/homekycUnregsitered.dart';
import 'package:fundex_app/pages/business/homekyc.dart';
import 'package:fundex_app/pages/kyc/biodata_body.dart';
import 'package:fundex_app/pages/kyc/biodata_keluarga_body.dart';
import 'package:fundex_app/pages/kyc/biodata_pendukung.dart';
import 'package:fundex_app/pages/kyc/data_identitas.dart';
import 'package:fundex_app/pages/kyc/design.dart';
import 'package:fundex_app/storage/storage.dart';
......@@ -133,6 +135,11 @@ class _AlamatBodyState extends State<AlamatBody> {
String getvillage;
int getdomicileaddressid;
bool getenabledomicile;
var valStep1;
var valStep2;
var valStep3;
var valStep4;
var valStep5;
void initState(){
super.initState();
......@@ -160,9 +167,17 @@ class _AlamatBodyState extends State<AlamatBody> {
idKYC = map['id'];
var val = (map)['attribute_value'];
var str = val.substring(1, val.length - 1);
var step1 = str.split(",")[1];
var value = step1.substring(8);
if (value == "true") {
var step3 = str.split(",")[2];
var step1 = str.split(",")[0];
var step2 = str.split(",")[1];
var step4 = str.split(",")[3];
var step5 = str.split(",")[4];
valStep3 = step3.substring(8);
valStep1 = step1.substring(8);
valStep2 = step2.substring(8);
valStep4 = step4.substring(8);
valStep5 = step5.substring(8);
if (valStep2 == "true") {
setState(() {
alreadyFilledSection = true;
});
......@@ -272,7 +287,7 @@ class _AlamatBodyState extends State<AlamatBody> {
),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return HomeKYCUnregistered();
return HomeKYC();
}));
},
),
......@@ -299,24 +314,38 @@ class _AlamatBodyState extends State<AlamatBody> {
child: Row(
children: <Widget>[
//buletan
Container(
height: 24,
width: 24,
decoration: BoxDecoration(
color: primary,
valStep1 == "false" ?
Container(
height: 24,
width: 24,
decoration: BoxDecoration(
border: Border.all(
width: 2,
style: BorderStyle.solid,
color: primary,
),
borderRadius:
BorderRadius.circular(100)),
child: IconButton(
icon: Icon(Icons.check_outlined,
color: white,
size: 16),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return BiodataBody();
}));
},
),
),
BorderRadius.circular(100),
),
)
: Container(
height: 24,
width: 24,
decoration: BoxDecoration(
color: primary,
borderRadius:
BorderRadius.circular(100)),
child: IconButton(
icon: Icon(Icons.check_outlined,
color: white,
size: 16),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return BiodataBody();
}));
},
),
),
//garis
Container(
......@@ -348,18 +377,38 @@ class _AlamatBodyState extends State<AlamatBody> {
),
//buletan
Container(
height: 24,
width: 24,
decoration: BoxDecoration(
valStep3 == "false" ?
Container(
height: 24,
width: 24,
decoration: BoxDecoration(
border: Border.all(
width: 2,
style: BorderStyle.solid,
color: primary,
),
borderRadius:
BorderRadius.circular(100)),
),
BorderRadius.circular(100),
),
)
: Container(
height: 24,
width: 24,
decoration: BoxDecoration(
color: primary,
borderRadius:
BorderRadius.circular(100)),
child: IconButton(
icon: Icon(Icons.check_outlined,
color: white,
size: 16),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return BiodataKeluarga();
}));
},
),
),
//garis
Container(
......@@ -369,18 +418,38 @@ class _AlamatBodyState extends State<AlamatBody> {
),
//buletan
Container(
height: 24,
width: 24,
decoration: BoxDecoration(
valStep4 == "false" ?
Container(
height: 24,
width: 24,
decoration: BoxDecoration(
border: Border.all(
width: 2,
style: BorderStyle.solid,
color: primary,
),
borderRadius:
BorderRadius.circular(100)),
),
BorderRadius.circular(100),
),
)
: Container(
height: 24,
width: 24,
decoration: BoxDecoration(
color: primary,
borderRadius:
BorderRadius.circular(100)),
child: IconButton(
icon: Icon(Icons.check_outlined,
color: white,
size: 16),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return DataIdentitas();
}));
},
),
),
//garis
Container(
......@@ -390,18 +459,38 @@ class _AlamatBodyState extends State<AlamatBody> {
),
//buletan
Container(
height: 24,
width: 24,
decoration: BoxDecoration(
valStep5 == "false" ?
Container(
height: 24,
width: 24,
decoration: BoxDecoration(
border: Border.all(
width: 2,
style: BorderStyle.solid,
color: primary,
),
borderRadius:
BorderRadius.circular(100)),
),
BorderRadius.circular(100),
),
)
: Container(
height: 24,
width: 24,
decoration: BoxDecoration(
color: primary,
borderRadius:
BorderRadius.circular(100)),
child: IconButton(
icon: Icon(Icons.check_outlined,
color: white,
size: 16),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return DataPendukung();
}));
},
),
),
],
),
),
......
......@@ -2,8 +2,11 @@ import 'package:flutter/material.dart';
import 'package:fundex_app/api/api.dart';
import 'package:fundex_app/assets/colors.dart';
import 'package:flutter_typeahead/flutter_typeahead.dart';
import 'package:fundex_app/pages/business/homekycUnregsitered.dart';
import 'package:fundex_app/pages/business/homekyc.dart';
import 'package:fundex_app/pages/kyc/alamat_body.dart';
import 'package:fundex_app/pages/kyc/biodata_keluarga_body.dart';
import 'package:fundex_app/pages/kyc/biodata_pendukung.dart';
import 'package:fundex_app/pages/kyc/data_identitas.dart';
import 'package:fundex_app/pages/kyc/design.dart';
import 'package:intl/intl.dart';
......@@ -88,6 +91,11 @@ class _BiodataBodyState extends State<BiodataBody> {
bool alreadyFilledSection = false;
DateTime date;
String strDate;
var valStep1;
var valStep2;
var valStep3;
var valStep4;
var valStep5;
double opacityRadio = 0;
void initState() {
......@@ -143,9 +151,18 @@ class _BiodataBodyState extends State<BiodataBody> {
idKYC = map['id'];
var val = (map)['attribute_value'];
var str = val.substring(1, val.length - 1);
var step3 = str.split(",")[2];
var step1 = str.split(",")[0];
var value = step1.substring(8);
if (value == "true") {
var step2 = str.split(",")[1];
var step4 = str.split(",")[3];
var step5 = str.split(",")[4];
valStep3 = step3.substring(8);
valStep1 = step1.substring(8);
valStep2 = step2.substring(8);
valStep4 = step4.substring(8);
valStep5 = step5.substring(8);
print("step 5 = " +valStep5);
if (valStep1 == "true") {
setState(() {
alreadyFilledSection = true;
});
......@@ -232,7 +249,7 @@ class _BiodataBodyState extends State<BiodataBody> {
),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return HomeKYCUnregistered();
return HomeKYC();
}));
},
),
......@@ -288,6 +305,7 @@ class _BiodataBodyState extends State<BiodataBody> {
),
//buletan
valStep2 == "false" ?
Container(
height: 24,
width: 24,
......@@ -300,7 +318,25 @@ class _BiodataBodyState extends State<BiodataBody> {
borderRadius:
BorderRadius.circular(100),
),
),
)
: Container(
height: 24,
width: 24,
decoration: BoxDecoration(
color: primary,
borderRadius:
BorderRadius.circular(100)),
child: IconButton(
icon: Icon(Icons.check_outlined,
color: white,
size: 16),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return AlamatBody();
}));
},
),
),
//garis
Container(
......@@ -310,6 +346,7 @@ class _BiodataBodyState extends State<BiodataBody> {
),
//buletan
valStep3 == "false" ?
Container(
height: 24,
width: 24,
......@@ -322,7 +359,25 @@ class _BiodataBodyState extends State<BiodataBody> {
borderRadius:
BorderRadius.circular(100),
),
),
)
: Container(
height: 24,
width: 24,
decoration: BoxDecoration(
color: primary,
borderRadius:
BorderRadius.circular(100)),
child: IconButton(
icon: Icon(Icons.check_outlined,
color: white,
size: 16),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return BiodataKeluarga();
}));
},
),
),
//garis
Container(
......@@ -332,6 +387,7 @@ class _BiodataBodyState extends State<BiodataBody> {
),
//buletan
valStep4 == "false" ?
Container(
height: 24,
width: 24,
......@@ -344,7 +400,25 @@ class _BiodataBodyState extends State<BiodataBody> {
borderRadius:
BorderRadius.circular(100),
),
),
)
: Container(
height: 24,
width: 24,
decoration: BoxDecoration(
color: primary,
borderRadius:
BorderRadius.circular(100)),
child: IconButton(
icon: Icon(Icons.check_outlined,
color: white,
size: 16),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return DataIdentitas();
}));
},
),
),
//garis
Container(
......@@ -354,6 +428,7 @@ class _BiodataBodyState extends State<BiodataBody> {
),
//buletan
valStep5 == "false" ?
Container(
height: 24,
width: 24,
......@@ -366,7 +441,25 @@ class _BiodataBodyState extends State<BiodataBody> {
borderRadius:
BorderRadius.circular(100),
),
),
)
: Container(
height: 24,
width: 24,
decoration: BoxDecoration(
color: primary,
borderRadius:
BorderRadius.circular(100)),
child: IconButton(
icon: Icon(Icons.check_outlined,
color: white,
size: 16),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return DataPendukung();
}));
},
),
),
],
),
),
......
import 'package:flutter/material.dart';
import 'package:fundex_app/api/api.dart';
import 'package:fundex_app/assets/colors.dart';
import 'package:fundex_app/pages/business/homekycUnregsitered.dart';
import 'package:fundex_app/pages/business/homekyc.dart';
import 'package:fundex_app/pages/kyc/alamat_body.dart';
import 'package:fundex_app/pages/kyc/biodata_body.dart';
import 'package:fundex_app/pages/kyc/biodata_pendukung.dart';
import 'package:fundex_app/pages/kyc/data_identitas.dart';
import 'package:fundex_app/pages/kyc/design.dart';
......@@ -58,6 +59,11 @@ class _BiodataKeluargaBodyState extends State<BiodataKeluarga> {
String statusPernikahan;
double opacityRadio = 0;
bool alreadyFilledSection = false;
var valStep1;
var valStep2;
var valStep3;
var valStep4;
var valStep5;
void initState() {
super.initState();
......@@ -127,9 +133,17 @@ class _BiodataKeluargaBodyState extends State<BiodataKeluarga> {
idKYC = map['id'];
var val = map['attribute_value'];
var str = val.substring(1, val.length - 1);
var step1 = str.split(",")[2];
var value = step1.substring(8);