census q type changed from int to string.

design_3.0_traf_module
Sikander Saleem 4 weeks ago
parent d181cce56b
commit 3c93245e4d

@ -194,9 +194,9 @@ class _CreateTRAFRequestPageState extends State<CreateTRAFRequestPage> {
backgroundColor: AppColor.fieldBgColor(context),
labelStyle: AppTextStyles.textFieldLabelStyle.copyWith(color: AppColor.textColor(context)),
showShadow: false,
textInputType: TextInputType.number,
textInputType: TextInputType.text,
onChange: (value) {
trafRequest?.censusQ1 = int.tryParse(value);
trafRequest?.censusQ1 = value;
},
),
12.height,
@ -207,9 +207,9 @@ class _CreateTRAFRequestPageState extends State<CreateTRAFRequestPage> {
backgroundColor: AppColor.fieldBgColor(context),
labelStyle: AppTextStyles.textFieldLabelStyle.copyWith(color: AppColor.textColor(context)),
showShadow: false,
textInputType: TextInputType.number,
textInputType: TextInputType.text,
onChange: (value) {
trafRequest?.censusQ2 = int.tryParse(value);
trafRequest?.censusQ2 = value;
},
),
12.height,
@ -220,9 +220,9 @@ class _CreateTRAFRequestPageState extends State<CreateTRAFRequestPage> {
backgroundColor: AppColor.fieldBgColor(context),
labelStyle: AppTextStyles.textFieldLabelStyle.copyWith(color: AppColor.textColor(context)),
showShadow: false,
textInputType: TextInputType.number,
textInputType: TextInputType.text,
onChange: (value) {
trafRequest?.censusQ3 = int.tryParse(value);
trafRequest?.censusQ3 = value;
},
),
12.height,
@ -233,9 +233,9 @@ class _CreateTRAFRequestPageState extends State<CreateTRAFRequestPage> {
backgroundColor: AppColor.fieldBgColor(context),
labelStyle: AppTextStyles.textFieldLabelStyle.copyWith(color: AppColor.textColor(context)),
showShadow: false,
textInputType: TextInputType.number,
textInputType: TextInputType.text,
onChange: (value) {
trafRequest?.censusQ4 = int.tryParse(value);
trafRequest?.censusQ4 = value;
},
),
12.height,

@ -74,10 +74,10 @@ class TrafRequestDataModel {
int? qty;
String? purposeAnswer;
String? currentPractise;
int? censusQ1;
int? censusQ2;
int? censusQ3;
int? censusQ4;
String? censusQ1;
String? censusQ2;
String? censusQ3;
String? censusQ4;
List<TrafContacts>? trafContacts;
int? usingSolelyOrSharedId;
String? usingSolelyOrSharedName;

Loading…
Cancel
Save