Merge pull request #55 from WDI-Ideas/product

kyc sjip
This commit is contained in:
Raj
2024-05-09 15:45:14 +05:30
committed by GitHub
2 changed files with 13 additions and 22 deletions

View File

@@ -104,7 +104,12 @@ class _KycState extends State<Kyc> {
child: Scaffold(
appBar: CommonAppbar(
titleTxt: "KYC",
customActionWidget: text16W400(""),
customActionWidget: InkWell(
onTap: () {
Get.toNamed(RouteName.updateriskprofile);
},
child: text16W400("skip"),
),
),
backgroundColor: Colors.black,
extendBody: true,

View File

@@ -70,30 +70,16 @@ class _VerifyOTPState extends State<VerifyOTP> {
SharedPreferences prefs = await SharedPreferences.getInstance();
await prefs.setString(
'accessToken', resp.data["data"]["access-token"]);
// await prefs.setString('productType',
// resp.data["data"]["nature_of_business_id"].toString());
// naturebusiness =
// resp.data["data"]["nature_of_business_id"].toString();
// ProfileApi().GetProfileApi().then(
// (value) {
// isSecuredAccess == 0
// ? Get.toNamed(RouteName.secureaccess)
// :
isProfileUpdated == 0
? Get.toNamed(RouteName.adddetails)
: isKycUpdated == 0
? Get.toNamed(RouteName.kyc)
: isriskProfileUpdated == 0
? Get.toNamed(RouteName.updateriskprofile)
: Get.toNamed(RouteName.mainscreen);
// Get.toNamed(RouteName.mainscreen);
// },
// );
// Get.to(() => CustomBottomBar(pageIndex: 0));
:
// isKycUpdated == 0
// ? Get.toNamed(RouteName.kyc)
// :
isriskProfileUpdated == 0
? Get.toNamed(RouteName.updateriskprofile)
: Get.toNamed(RouteName.mainscreen);
} else {
Get.toNamed(RouteName.loginscreen);
}