@@ -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,
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user