change field to make some optional pt2
This commit is contained in:
@@ -284,17 +284,6 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
|
|||||||
return MihValidationServices().isEmpty(value);
|
return MihValidationServices().isEmpty(value);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
// MihDropdownField(
|
|
||||||
// controller: typeController,
|
|
||||||
// hintText: "Business Type",
|
|
||||||
// dropdownOptions: const ["Doctors Office", "Other"],
|
|
||||||
// editable: true,
|
|
||||||
// enableSearch: true,
|
|
||||||
// validator: (value) {
|
|
||||||
// return MihValidationServices().isEmpty(value);
|
|
||||||
// },
|
|
||||||
// requiredText: true,
|
|
||||||
// ),
|
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
MihTextFormField(
|
MihTextFormField(
|
||||||
fillColor: MzansiInnovationHub.of(context)!
|
fillColor: MzansiInnovationHub.of(context)!
|
||||||
@@ -329,23 +318,6 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
MihTextFormField(
|
|
||||||
fillColor: MzansiInnovationHub.of(context)!
|
|
||||||
.theme
|
|
||||||
.secondaryColor(),
|
|
||||||
inputColor: MzansiInnovationHub.of(context)!
|
|
||||||
.theme
|
|
||||||
.primaryColor(),
|
|
||||||
controller: websiteController,
|
|
||||||
multiLineInput: false,
|
|
||||||
requiredText: false,
|
|
||||||
hintText: "Business Website",
|
|
||||||
validator: (value) {
|
|
||||||
return MihValidationServices()
|
|
||||||
.validateWebsite(value, false);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
const SizedBox(height: 10),
|
|
||||||
MihTextFormField(
|
MihTextFormField(
|
||||||
height: 250,
|
height: 250,
|
||||||
fillColor: MzansiInnovationHub.of(context)!
|
fillColor: MzansiInnovationHub.of(context)!
|
||||||
@@ -394,6 +366,23 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 10.0),
|
const SizedBox(height: 10.0),
|
||||||
|
MihTextFormField(
|
||||||
|
fillColor: MzansiInnovationHub.of(context)!
|
||||||
|
.theme
|
||||||
|
.secondaryColor(),
|
||||||
|
inputColor: MzansiInnovationHub.of(context)!
|
||||||
|
.theme
|
||||||
|
.primaryColor(),
|
||||||
|
controller: websiteController,
|
||||||
|
multiLineInput: false,
|
||||||
|
requiredText: false,
|
||||||
|
hintText: "Business Website",
|
||||||
|
validator: (value) {
|
||||||
|
return MihValidationServices()
|
||||||
|
.validateWebsite(value, false);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
const SizedBox(height: 10),
|
||||||
MihTextFormField(
|
MihTextFormField(
|
||||||
fillColor: MzansiInnovationHub.of(context)!
|
fillColor: MzansiInnovationHub.of(context)!
|
||||||
.theme
|
.theme
|
||||||
@@ -403,7 +392,7 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
|
|||||||
.primaryColor(),
|
.primaryColor(),
|
||||||
controller: regController,
|
controller: regController,
|
||||||
multiLineInput: false,
|
multiLineInput: false,
|
||||||
requiredText: true,
|
requiredText: false,
|
||||||
hintText: "Registration No.",
|
hintText: "Registration No.",
|
||||||
validator: (value) {
|
validator: (value) {
|
||||||
return MihValidationServices().isEmpty(value);
|
return MihValidationServices().isEmpty(value);
|
||||||
@@ -419,8 +408,7 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
|
|||||||
.primaryColor(),
|
.primaryColor(),
|
||||||
controller: practiceNoController,
|
controller: practiceNoController,
|
||||||
multiLineInput: false,
|
multiLineInput: false,
|
||||||
requiredText:
|
requiredText: false,
|
||||||
typeController.text == "Doctors Office",
|
|
||||||
hintText: "Practice Number",
|
hintText: "Practice Number",
|
||||||
validator: (validateValue) {
|
validator: (validateValue) {
|
||||||
return null;
|
return null;
|
||||||
@@ -436,7 +424,7 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
|
|||||||
.primaryColor(),
|
.primaryColor(),
|
||||||
controller: vatNoController,
|
controller: vatNoController,
|
||||||
multiLineInput: false,
|
multiLineInput: false,
|
||||||
requiredText: true,
|
requiredText: false,
|
||||||
hintText: "VAT Number",
|
hintText: "VAT Number",
|
||||||
validator: (value) {
|
validator: (value) {
|
||||||
return MihValidationServices().isEmpty(value);
|
return MihValidationServices().isEmpty(value);
|
||||||
|
|||||||
Reference in New Issue
Block a user