kyc and update risk profile api integration and issues fixed

This commit is contained in:
jayesh
2024-05-10 15:48:07 +05:30
parent a6df6e9be0
commit 112ece34cf
16 changed files with 610 additions and 170 deletions

View File

@@ -20,6 +20,7 @@ class CustomTextFormField extends StatefulWidget {
this.inputFormatters,
this.onInput,
this.onTap,
this.textCapV,
this.suffixIcon,
}) : super(key: key);
@@ -38,6 +39,7 @@ class CustomTextFormField extends StatefulWidget {
final dynamic inputFormatters;
final Function(String)? onInput;
final VoidCallback? onTap;
final TextCapitalization? textCapV;
final Widget? suffixIcon;
@override
@@ -93,6 +95,7 @@ class _CustomTextFormFieldState extends State<CustomTextFormField> {
autovalidateMode: AutovalidateMode.onUserInteraction,
obscureText: obscureText,
controller: widget.textEditingController,
textCapitalization: widget.textCapV ?? TextCapitalization.none,
decoration: InputDecoration(
hintStyle: TextStyle(color: Colors.white),
hintText: widget.hintText,

View File

@@ -133,20 +133,24 @@ class _CustomDropDownWidgetState extends State<CustomDropDownWidget> {
Positioned(
left: 14,
top: 16,
child: Text(
widget.type == "risk"
? (selectedValue.isNotEmpty
? selectedValue.value
: widget.header)
: (contactUsController.selectedValue.isNotEmpty
? contactUsController.selectedValue.value
: widget.header),
style: const TextStyle(
color: Color(0xFFADADAD),
fontSize: 16,
fontFamily: 'hiragino',
fontWeight: FontWeight.w400,
height: 0,
child: Container(
width: 310,
child: Text(
widget.type == "risk"
? (selectedValue.isNotEmpty
? selectedValue.value
: widget.header)
: (contactUsController.selectedValue.isNotEmpty
? contactUsController.selectedValue.value
: widget.header),
overflow: TextOverflow.ellipsis,
style: const TextStyle(
color: Color(0xFFADADAD),
fontSize: 16,
fontFamily: 'hiragino',
fontWeight: FontWeight.w400,
height: 0,
),
),
),
),

View File

@@ -43,6 +43,7 @@ class ApiUrls {
//RISK PROFILE API
static String getRiskProfileQuestionAnswerApi = "${base}riskProfileQueAns";
static String addRiskProfileQuestionAnswerApi = "${base}addUserRiskProfile";
static String getRiskProfile = "${base}get-user-risk-profile-data";
//CONTENT BYTES API
static String getContentBytesCategoriesApi =
@@ -78,4 +79,7 @@ class ApiUrls {
//explore unseen
static String getExplore = "${base}get-explore-the-unseen-recommendations";
//kyc
static String getKyc = "${base}get-kyc-images";
}