Fakultas Ilmu Komputer UI

Commit 3425e89c authored by Muhammad Farhan Ghaffar's avatar Muhammad Farhan Ghaffar
Browse files

pulling from staging

parents 275a9e45 cb4acebb
Pipeline #83933 passed with stages
in 7 minutes and 42 seconds
......@@ -710,7 +710,7 @@
"languageVersion": "2.7"
}
],
"generated": "2021-06-28T03:33:48.914668Z",
"generated": "2021-06-28T05:42:37.870816Z",
"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-28 12:00:28.226522","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-28 12:42:38.818553","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-28 10:33:48.803964.
# Generated by pub on 2021-06-28 12:42:37.799009.
_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/
......
import 'dart:convert';
import 'dart:io';
import 'package:fundex_app/pages/business/EquityOfferings.dart';
import 'package:fundex_app/storage/storage.dart';
import 'package:http/http.dart' show Client;
import 'package:http/http.dart' as http;
......@@ -1576,4 +1577,49 @@ class Api {
throw Exception('Get Failed');
}
}
Future equityPurchases() async {
final apiURL =
Uri.parse('https://canary.fundex.id/api/v1.1/equity-purchases');
var token = await secureStorage.readSecureData('accessToken');
var headers = {
'Content-type': 'application/json',
HttpHeaders.authorizationHeader: 'Bearer $token',
};
var apiResult = await client.get(apiURL, headers: headers);
print(await secureStorage.readSecureData('accessToken'));
print(apiResult.reasonPhrase);
print(apiResult.request);
print("get ref state: " + (apiResult.statusCode).toString());
if (apiResult.statusCode == 200) {
var jsonObject = json.decode(apiResult.body);
var jsonData = (jsonObject as Map<String, dynamic>)['data'];
List<dynamic> equityPurchases = jsonData['equity_purchases'];
return equityPurchases;
} else {
throw Exception('Get Failed');
}
}
Future equityPurchasesId(int id) async {
final apiURL =
Uri.parse('https://canary.fundex.id/api/v1.1/equity-purchases/:$id');
var token = await secureStorage.readSecureData('accessToken');
var headers = {
'Content-type': 'application/json',
HttpHeaders.authorizationHeader: 'Bearer $token',
};
var apiResult = await client.get(apiURL, headers: headers);
print(await secureStorage.readSecureData('accessToken'));
print(apiResult.reasonPhrase);
print(apiResult.request);
print("get ref state: " + (apiResult.statusCode).toString());
if (apiResult.statusCode == 200) {
var jsonObject = json.decode(apiResult.body);
var jsonData = (jsonObject as Map<String, dynamic>)['data'];
return jsonData;
} else {
throw Exception('Get Failed');
}
}
}
......@@ -8,7 +8,7 @@ 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';
// import 'package:fundex_app/storage/storage.dart';
class ValidasiAlamat {
static String validate(String value) {
......@@ -17,6 +17,7 @@ class ValidasiAlamat {
}
String provinsi;
class ValidasiTempat {
static String validate(String value) {
return value.isEmpty ? 'Provinsi harus di isi' : null;
......@@ -24,6 +25,7 @@ class ValidasiTempat {
}
String kabupaten;
class ValidasiKabupaten {
static String validate(String value) {
return value.isEmpty ? 'Kabupaten harus di isi' : null;
......@@ -31,6 +33,7 @@ class ValidasiKabupaten {
}
String kecamatan;
class ValidasiKecamatan {
static String validate(String value) {
return value.isEmpty ? 'Kecamatan harus di isi' : null;
......@@ -63,6 +66,7 @@ class ValidasiKodePos {
}
String provinsiTambahan;
class ValidasiTempatTambahan {
static String validate(String value) {
return value.isEmpty ? 'Provinsi harus di isi' : null;
......@@ -70,6 +74,7 @@ class ValidasiTempatTambahan {
}
String kabupatenTambahan;
class ValidasiKabupatenTambahan {
static String validate(String value) {
return value.isEmpty ? 'Kabupaten harus di isi' : null;
......@@ -77,6 +82,7 @@ class ValidasiKabupatenTambahan {
}
String kecamatanTambahan;
class ValidasiKecamatanTambahan {
static String validate(String value) {
return value.isEmpty ? 'Kecamatan harus di isi' : null;
......@@ -112,9 +118,12 @@ class _AlamatBodyState extends State<AlamatBody> {
TextEditingController _typeAheadControllerKab = TextEditingController();
TextEditingController _typeAheadControllerKec = TextEditingController();
TextEditingController _formKelurahan = TextEditingController();
TextEditingController _typeAheadControllerProTambahan = TextEditingController();
TextEditingController _typeAheadControllerKabTambahan = TextEditingController();
TextEditingController _typeAheadControllerKecTambahan = TextEditingController();
TextEditingController _typeAheadControllerProTambahan =
TextEditingController();
TextEditingController _typeAheadControllerKabTambahan =
TextEditingController();
TextEditingController _typeAheadControllerKecTambahan =
TextEditingController();
TextEditingController _formKelurahanTambahan = TextEditingController();
TextEditingController _formAlamatLengkap = TextEditingController();
TextEditingController _formZipCode = TextEditingController();
......@@ -141,7 +150,7 @@ class _AlamatBodyState extends State<AlamatBody> {
var valStep4;
var valStep5;
void initState(){
void initState() {
super.initState();
init();
}
......@@ -149,7 +158,6 @@ class _AlamatBodyState extends State<AlamatBody> {
// MEMBER-ATTRIBUTE BELUM DI GET
// ADDRESS BELUM DI LOOP KETIKA DI GET
Future init() async {
final List<String> listCity = await Api().getRefCity();
final List<String> listStates = await Api().getRefState();
final List<String> listDistr = await Api().getRefDistrict();
......@@ -186,7 +194,7 @@ class _AlamatBodyState extends State<AlamatBody> {
}
city = listCity;
distr= listDistr;
distr = listDistr;
states = listStates;
idAddress = jsonAddress['id'];
getaddress = jsonAddress['address_1'];
......@@ -198,7 +206,7 @@ class _AlamatBodyState extends State<AlamatBody> {
getdomicileaddressid = jsonAddress['domicile_address_id'];
setState(() {
this.distr= distr;
this.distr = distr;
this.states = states;
this.city = city;
this.idAddress = idAddress;
......@@ -211,7 +219,7 @@ class _AlamatBodyState extends State<AlamatBody> {
this.getdomicileaddressid = getdomicileaddressid;
// this.getdomicileaddressid = getdomicileaddressid;
// this.getenabledomicile = getenabledomicile;
if (alreadyFilledSection) {
if (alreadyFilledSection) {
_typeAheadControllerPro.text = getprovince;
_typeAheadControllerKab.text = getcity;
_typeAheadControllerKec.text = getdistrict;
......@@ -227,50 +235,49 @@ class _AlamatBodyState extends State<AlamatBody> {
}
});
}
List<String> getSuggestionsCity(String query) {
List<String> matches = [];
matches.addAll(city);
matches.retainWhere((s) => s.toLowerCase().contains(query.toLowerCase()));
matches.retainWhere((s) => s.toLowerCase().contains(query.toLowerCase()));
return matches;
}
List<String> getSuggestionsStates(String query) {
List<String> matches = [];
matches.addAll(states);
matches.retainWhere((s) => s.toLowerCase().contains(query.toLowerCase()));
matches.retainWhere((s) => s.toLowerCase().contains(query.toLowerCase()));
return matches;
}
List<String> getSuggestionsDistr(String query) {
List<String> matches = [];
matches.addAll(distr);
matches.retainWhere((s) => s.toLowerCase().contains(query.toLowerCase()));
matches.retainWhere((s) => s.toLowerCase().contains(query.toLowerCase()));
return matches;
}
List<String> getSuggestionsCityTambahan(String query) {
List<String> matches = [];
matches.addAll(city);
matches.retainWhere((s) => s.toLowerCase().contains(query.toLowerCase()));
matches.retainWhere((s) => s.toLowerCase().contains(query.toLowerCase()));
return matches;
}
List<String> getSuggestionsStatesTambahan(String query) {
List<String> matches = [];
matches.addAll(states);
matches.retainWhere((s) => s.toLowerCase().contains(query.toLowerCase()));
matches.retainWhere((s) => s.toLowerCase().contains(query.toLowerCase()));
return matches;
}
List<String> getSuggestionsDistrTambahan(String query) {
List<String> matches = [];
matches.addAll(distr);
matches.retainWhere((s) => s.toLowerCase().contains(query.toLowerCase()));
matches.retainWhere((s) => s.toLowerCase().contains(query.toLowerCase()));
return matches;
}
@override
Widget build(BuildContext context) {
return MaterialApp(
......@@ -287,8 +294,8 @@ class _AlamatBodyState extends State<AlamatBody> {
),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return HomeKYC();
}));
return HomeKYC();
}));
},
),
Text('e-KYC Pemodal', style: titleTextStyle()),
......@@ -314,21 +321,21 @@ class _AlamatBodyState extends State<AlamatBody> {
child: Row(
children: <Widget>[
//buletan
valStep1 == "false" ?
Container(
height: 24,
width: 24,
decoration: BoxDecoration(
border: Border.all(
width: 2,
style: BorderStyle.solid,
color: primary,
),
borderRadius:
BorderRadius.circular(100),
),
)
: Container(
valStep1 == "false"
? Container(
height: 24,
width: 24,
decoration: BoxDecoration(
border: Border.all(
width: 2,
style: BorderStyle.solid,
color: primary,
),
borderRadius:
BorderRadius.circular(100),
),
)
: Container(
height: 24,
width: 24,
decoration: BoxDecoration(
......@@ -338,12 +345,13 @@ class _AlamatBodyState extends State<AlamatBody> {
child: IconButton(
padding: EdgeInsets.all(0),
icon: Icon(Icons.check_outlined,
color: white,
size: 16),
color: white, size: 16),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return BiodataBody();
}));
Navigator.push(context,
MaterialPageRoute(
builder: (context) {
return BiodataBody();
}));
},
),
),
......@@ -378,21 +386,21 @@ class _AlamatBodyState extends State<AlamatBody> {
),
//buletan
valStep3 == "false" ?
Container(
height: 24,
width: 24,
decoration: BoxDecoration(
border: Border.all(
width: 2,
style: BorderStyle.solid,
color: primary,
),
borderRadius:
BorderRadius.circular(100),
),
)
: Container(
valStep3 == "false"
? Container(
height: 24,
width: 24,
decoration: BoxDecoration(
border: Border.all(
width: 2,
style: BorderStyle.solid,
color: primary,
),
borderRadius:
BorderRadius.circular(100),
),
)
: Container(
height: 24,
width: 24,
decoration: BoxDecoration(
......@@ -402,12 +410,13 @@ class _AlamatBodyState extends State<AlamatBody> {
child: IconButton(
padding: EdgeInsets.all(0),
icon: Icon(Icons.check_outlined,
color: white,
size: 16),
color: white, size: 16),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return BiodataKeluarga();
}));
Navigator.push(context,
MaterialPageRoute(
builder: (context) {
return BiodataKeluarga();
}));
},
),
),
......@@ -420,21 +429,21 @@ class _AlamatBodyState extends State<AlamatBody> {
),
//buletan
valStep4 == "false" ?
Container(
height: 24,
width: 24,
decoration: BoxDecoration(
border: Border.all(
width: 2,
style: BorderStyle.solid,
color: primary,
),
borderRadius:
BorderRadius.circular(100),
),
)
: Container(
valStep4 == "false"
? Container(
height: 24,
width: 24,
decoration: BoxDecoration(
border: Border.all(
width: 2,
style: BorderStyle.solid,
color: primary,
),
borderRadius:
BorderRadius.circular(100),
),
)
: Container(
height: 24,
width: 24,
decoration: BoxDecoration(
......@@ -444,12 +453,13 @@ class _AlamatBodyState extends State<AlamatBody> {
child: IconButton(
padding: EdgeInsets.all(0),
icon: Icon(Icons.check_outlined,
color: white,
size: 16),
color: white, size: 16),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return DataIdentitas();
}));
Navigator.push(context,
MaterialPageRoute(
builder: (context) {
return DataIdentitas();
}));
},
),
),
......@@ -462,21 +472,21 @@ class _AlamatBodyState extends State<AlamatBody> {
),
//buletan
valStep5 == "false" ?
Container(
height: 24,
width: 24,
decoration: BoxDecoration(
border: Border.all(
width: 2,
style: BorderStyle.solid,
color: primary,
),
borderRadius:
BorderRadius.circular(100),
),
)
: Container(
valStep5 == "false"
? Container(
height: 24,
width: 24,
decoration: BoxDecoration(
border: Border.all(
width: 2,
style: BorderStyle.solid,
color: primary,
),
borderRadius:
BorderRadius.circular(100),
),
)
: Container(
height: 24,
width: 24,
decoration: BoxDecoration(
......@@ -486,12 +496,13 @@ class _AlamatBodyState extends State<AlamatBody> {
child: IconButton(
padding: EdgeInsets.all(0),
icon: Icon(Icons.check_outlined,
color: white,
size: 16),
color: white, size: 16),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return DataPendukung();
}));
Navigator.push(context,
MaterialPageRoute(
builder: (context) {
return DataPendukung();
}));
},
),
),
......@@ -626,11 +637,9 @@ class _AlamatBodyState extends State<AlamatBody> {
width: 343,
child: TypeAheadFormField(
key: Key('typeahead'),
textFieldConfiguration:
TextFieldConfiguration(
textFieldConfiguration: TextFieldConfiguration(
controller: this._typeAheadControllerPro,
decoration: formInputDecoration()
),
decoration: formInputDecoration()),
suggestionsCallback: (pattern) {
return getSuggestionsStates(pattern);
},
......@@ -667,11 +676,9 @@ class _AlamatBodyState extends State<AlamatBody> {
width: 343,
child: TypeAheadFormField(
key: Key('typeaheadKabupaten'),
textFieldConfiguration:
TextFieldConfiguration(
textFieldConfiguration: TextFieldConfiguration(
controller: this._typeAheadControllerKab,
decoration: formInputDecoration()
),
decoration: formInputDecoration()),
suggestionsCallback: (pattern) {
return getSuggestionsCity(pattern);
},
......@@ -692,7 +699,7 @@ class _AlamatBodyState extends State<AlamatBody> {
// ignore: missing_return
validator: ValidasiKabupaten.validate,
// onSaved: (value) =>
// this._pilihKabupaten = value,
// this._pilihKabupaten = value,
),
),
......@@ -818,109 +825,131 @@ class _AlamatBodyState extends State<AlamatBody> {
// button
Container(
margin: const EdgeInsets.fromLTRB(0, 42, 0, 16),
child: Row(
children: <Widget>[
Container(
margin: const EdgeInsets.fromLTRB(0, 0, 16, 0),
child: SizedBox(
width: 163.5,
height: 52,
child: ElevatedButton(
key: Key('sebelumnyaButton'),
style: ElevatedButton.styleFrom(
primary: red1,
onPrimary: secondary,
),
onPressed: () {
if (!_formkey.currentState.validate()) {
print("Failed");
}
Navigator.push(context,
MaterialPageRoute(builder: (context) {
return BiodataBody();
}));
},
child: Text(
"Sebelumnya",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 14,
fontFamily: 'Inter',
color: white,
),
),
child: Row(
children: <Widget>[
Container(
margin:
const EdgeInsets.fromLTRB(0, 0, 16, 0),
child: SizedBox(
width: 163.5,
height: 52,
child: ElevatedButton(
key: Key('sebelumnyaButton'),
style: ElevatedButton.styleFrom(
primary: red1,
onPrimary: secondary,
),
onPressed: () {
if (!_formkey.currentState
.validate()) {
print("Failed");
}
Navigator.push(context,
MaterialPageRoute(
builder: (context) {
return BiodataBody();
}));
},
child: Text(
"Sebelumnya",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 14,
fontFamily: 'Inter',
color: white,
),
),
),
Container(
// margin: const EdgeInsets.fromLTRB(0, 42, 0, 16),
child: SizedBox(
width: 163.5,
height: 52,
child: ElevatedButton(
key: Key('selanjutnyaButton'),
style: ElevatedButton.styleFrom(
primary: primary,
onPrimary: secondary,
),
onPressed: () async{
if (!_formkey.currentState.validate()) {
print("Failed");