add page scroll
This commit is contained in:
@@ -174,176 +174,179 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
|
|||||||
submitForm();
|
submitForm();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Column(
|
child: SingleChildScrollView(
|
||||||
children: [
|
child: Column(
|
||||||
const Text(
|
children: [
|
||||||
"Add Business Profile:",
|
const Text(
|
||||||
style: TextStyle(
|
"Add Business Profile:",
|
||||||
fontWeight: FontWeight.bold,
|
style: TextStyle(
|
||||||
fontSize: 25,
|
fontWeight: FontWeight.bold,
|
||||||
),
|
fontSize: 25,
|
||||||
),
|
|
||||||
const SizedBox(height: 15.0),
|
|
||||||
MyTextField(
|
|
||||||
controller: regController,
|
|
||||||
hintText: "Registration No.",
|
|
||||||
editable: true,
|
|
||||||
required: true,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 10.0),
|
|
||||||
MyTextField(
|
|
||||||
controller: nameController,
|
|
||||||
hintText: "Business Name",
|
|
||||||
editable: true,
|
|
||||||
required: true,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 10.0),
|
|
||||||
MyDropdownField(
|
|
||||||
controller: typeController,
|
|
||||||
hintText: "Business Type",
|
|
||||||
dropdownOptions: const ["Doctors Office", "Other"],
|
|
||||||
required: true,
|
|
||||||
editable: true,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 10.0),
|
|
||||||
Row(
|
|
||||||
mainAxisSize: MainAxisSize.max,
|
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
|
||||||
children: [
|
|
||||||
Flexible(
|
|
||||||
flex: 19,
|
|
||||||
child: MyTextField(
|
|
||||||
controller: logonameController,
|
|
||||||
hintText: "Logo",
|
|
||||||
editable: false,
|
|
||||||
required: true,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Flexible(
|
),
|
||||||
flex: 1,
|
const SizedBox(height: 15.0),
|
||||||
child: Center(
|
MyTextField(
|
||||||
child: IconButton(
|
controller: regController,
|
||||||
icon: const Icon(Icons.attach_file),
|
hintText: "Registration No.",
|
||||||
onPressed: () async {
|
editable: true,
|
||||||
FilePickerResult? result =
|
required: true,
|
||||||
await FilePicker.platform.pickFiles(
|
),
|
||||||
type: FileType.custom,
|
const SizedBox(height: 10.0),
|
||||||
allowedExtensions: ['jpg', 'png', 'pdf'],
|
MyTextField(
|
||||||
);
|
controller: nameController,
|
||||||
if (result == null) return;
|
hintText: "Business Name",
|
||||||
final selectedFile = result.files.first;
|
editable: true,
|
||||||
setState(() {
|
required: true,
|
||||||
selectedLogo = selectedFile;
|
),
|
||||||
});
|
const SizedBox(height: 10.0),
|
||||||
setState(() {
|
MyDropdownField(
|
||||||
logonameController.text = selectedFile.name;
|
controller: typeController,
|
||||||
});
|
hintText: "Business Type",
|
||||||
},
|
dropdownOptions: const ["Doctors Office", "Other"],
|
||||||
|
required: true,
|
||||||
|
editable: true,
|
||||||
|
),
|
||||||
|
const SizedBox(height: 10.0),
|
||||||
|
Row(
|
||||||
|
mainAxisSize: MainAxisSize.max,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Flexible(
|
||||||
|
flex: 19,
|
||||||
|
child: MyTextField(
|
||||||
|
controller: logonameController,
|
||||||
|
hintText: "Logo",
|
||||||
|
editable: false,
|
||||||
|
required: true,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
Flexible(
|
||||||
],
|
flex: 1,
|
||||||
),
|
child: Center(
|
||||||
const SizedBox(height: 15.0),
|
child: IconButton(
|
||||||
Divider(
|
icon: const Icon(Icons.attach_file),
|
||||||
color:
|
onPressed: () async {
|
||||||
MzanziInnovationHub.of(context)?.theme.secondaryColor(),
|
FilePickerResult? result =
|
||||||
),
|
await FilePicker.platform.pickFiles(
|
||||||
const SizedBox(height: 15.0),
|
type: FileType.custom,
|
||||||
const Text(
|
allowedExtensions: ['jpg', 'png', 'pdf'],
|
||||||
"My Business User:",
|
);
|
||||||
style: TextStyle(
|
if (result == null) return;
|
||||||
fontWeight: FontWeight.bold,
|
final selectedFile = result.files.first;
|
||||||
fontSize: 25,
|
setState(() {
|
||||||
),
|
selectedLogo = selectedFile;
|
||||||
),
|
});
|
||||||
const SizedBox(height: 15.0),
|
setState(() {
|
||||||
MyDropdownField(
|
logonameController.text = selectedFile.name;
|
||||||
controller: titleController,
|
});
|
||||||
hintText: "Title",
|
},
|
||||||
dropdownOptions: const ["Doctor", "Assistant"],
|
),
|
||||||
required: true,
|
|
||||||
editable: true,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 10.0),
|
|
||||||
MyTextField(
|
|
||||||
controller: fnameController,
|
|
||||||
hintText: "Name",
|
|
||||||
editable: false,
|
|
||||||
required: true,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 10.0),
|
|
||||||
MyTextField(
|
|
||||||
controller: lnameController,
|
|
||||||
hintText: "Surname",
|
|
||||||
editable: false,
|
|
||||||
required: true,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 10.0),
|
|
||||||
Row(
|
|
||||||
mainAxisSize: MainAxisSize.max,
|
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
|
||||||
children: [
|
|
||||||
Flexible(
|
|
||||||
flex: 19,
|
|
||||||
child: MyTextField(
|
|
||||||
controller: signtureController,
|
|
||||||
hintText: "Signature",
|
|
||||||
editable: false,
|
|
||||||
required: true,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Flexible(
|
|
||||||
flex: 1,
|
|
||||||
child: Center(
|
|
||||||
child: IconButton(
|
|
||||||
icon: const Icon(Icons.attach_file),
|
|
||||||
onPressed: () async {
|
|
||||||
FilePickerResult? result =
|
|
||||||
await FilePicker.platform.pickFiles(
|
|
||||||
type: FileType.custom,
|
|
||||||
allowedExtensions: ['jpg', 'png', 'pdf'],
|
|
||||||
);
|
|
||||||
if (result == null) return;
|
|
||||||
final selectedFile = result.files.first;
|
|
||||||
setState(() {
|
|
||||||
selectedSignature = selectedFile;
|
|
||||||
});
|
|
||||||
setState(() {
|
|
||||||
signtureController.text = selectedFile.name;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
|
||||||
),
|
|
||||||
const SizedBox(height: 15.0),
|
|
||||||
MyDropdownField(
|
|
||||||
controller: accessController,
|
|
||||||
hintText: "Access",
|
|
||||||
dropdownOptions: const ["Full", "Partial"],
|
|
||||||
required: true,
|
|
||||||
editable: false,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 15.0),
|
|
||||||
SizedBox(
|
|
||||||
width: 500.0,
|
|
||||||
height: 100.0,
|
|
||||||
child: MyButton(
|
|
||||||
buttonText: "Add",
|
|
||||||
buttonColor:
|
|
||||||
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
|
||||||
textColor:
|
|
||||||
MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
|
||||||
onTap: () {
|
|
||||||
submitForm();
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
),
|
const SizedBox(height: 15.0),
|
||||||
],
|
Divider(
|
||||||
|
color:
|
||||||
|
MzanziInnovationHub.of(context)?.theme.secondaryColor(),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 15.0),
|
||||||
|
const Text(
|
||||||
|
"My Business User:",
|
||||||
|
style: TextStyle(
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontSize: 25,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 15.0),
|
||||||
|
MyDropdownField(
|
||||||
|
controller: titleController,
|
||||||
|
hintText: "Title",
|
||||||
|
dropdownOptions: const ["Doctor", "Assistant"],
|
||||||
|
required: true,
|
||||||
|
editable: true,
|
||||||
|
),
|
||||||
|
const SizedBox(height: 10.0),
|
||||||
|
MyTextField(
|
||||||
|
controller: fnameController,
|
||||||
|
hintText: "Name",
|
||||||
|
editable: false,
|
||||||
|
required: true,
|
||||||
|
),
|
||||||
|
const SizedBox(height: 10.0),
|
||||||
|
MyTextField(
|
||||||
|
controller: lnameController,
|
||||||
|
hintText: "Surname",
|
||||||
|
editable: false,
|
||||||
|
required: true,
|
||||||
|
),
|
||||||
|
const SizedBox(height: 10.0),
|
||||||
|
Row(
|
||||||
|
mainAxisSize: MainAxisSize.max,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Flexible(
|
||||||
|
flex: 19,
|
||||||
|
child: MyTextField(
|
||||||
|
controller: signtureController,
|
||||||
|
hintText: "Signature",
|
||||||
|
editable: false,
|
||||||
|
required: true,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Flexible(
|
||||||
|
flex: 1,
|
||||||
|
child: Center(
|
||||||
|
child: IconButton(
|
||||||
|
icon: const Icon(Icons.attach_file),
|
||||||
|
onPressed: () async {
|
||||||
|
FilePickerResult? result =
|
||||||
|
await FilePicker.platform.pickFiles(
|
||||||
|
type: FileType.custom,
|
||||||
|
allowedExtensions: ['jpg', 'png', 'pdf'],
|
||||||
|
);
|
||||||
|
if (result == null) return;
|
||||||
|
final selectedFile = result.files.first;
|
||||||
|
setState(() {
|
||||||
|
selectedSignature = selectedFile;
|
||||||
|
});
|
||||||
|
setState(() {
|
||||||
|
signtureController.text = selectedFile.name;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
const SizedBox(height: 15.0),
|
||||||
|
MyDropdownField(
|
||||||
|
controller: accessController,
|
||||||
|
hintText: "Access",
|
||||||
|
dropdownOptions: const ["Full", "Partial"],
|
||||||
|
required: true,
|
||||||
|
editable: false,
|
||||||
|
),
|
||||||
|
const SizedBox(height: 15.0),
|
||||||
|
SizedBox(
|
||||||
|
width: 500.0,
|
||||||
|
height: 100.0,
|
||||||
|
child: MyButton(
|
||||||
|
buttonText: "Add",
|
||||||
|
buttonColor: MzanziInnovationHub.of(context)!
|
||||||
|
.theme
|
||||||
|
.secondaryColor(),
|
||||||
|
textColor:
|
||||||
|
MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
|
onTap: () {
|
||||||
|
submitForm();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -268,177 +268,180 @@ class _ProfileBusinessUpdateState extends State<ProfileBusinessUpdate> {
|
|||||||
submitForm(business_id);
|
submitForm(business_id);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Column(
|
child: SingleChildScrollView(
|
||||||
children: [
|
child: Column(
|
||||||
const Text(
|
children: [
|
||||||
"Update Business Profile:",
|
const Text(
|
||||||
style: TextStyle(
|
"Update Business Profile:",
|
||||||
fontWeight: FontWeight.bold,
|
style: TextStyle(
|
||||||
fontSize: 25,
|
fontWeight: FontWeight.bold,
|
||||||
),
|
fontSize: 25,
|
||||||
),
|
|
||||||
const SizedBox(height: 15.0),
|
|
||||||
MyTextField(
|
|
||||||
controller: regController,
|
|
||||||
hintText: "Registration No.",
|
|
||||||
editable: true,
|
|
||||||
required: true,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 10.0),
|
|
||||||
MyTextField(
|
|
||||||
controller: nameController,
|
|
||||||
hintText: "Business Name",
|
|
||||||
editable: true,
|
|
||||||
required: true,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 10.0),
|
|
||||||
MyDropdownField(
|
|
||||||
controller: typeController,
|
|
||||||
hintText: "Business Type",
|
|
||||||
dropdownOptions: const ["Doctors Office", "Other"],
|
|
||||||
required: true,
|
|
||||||
editable: true,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 10.0),
|
|
||||||
Row(
|
|
||||||
mainAxisSize: MainAxisSize.max,
|
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
|
||||||
children: [
|
|
||||||
Flexible(
|
|
||||||
flex: 19,
|
|
||||||
child: MyTextField(
|
|
||||||
controller: logonameController,
|
|
||||||
hintText: "Logo",
|
|
||||||
editable: false,
|
|
||||||
required: true,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Flexible(
|
),
|
||||||
flex: 1,
|
const SizedBox(height: 15.0),
|
||||||
child: Center(
|
MyTextField(
|
||||||
child: IconButton(
|
controller: regController,
|
||||||
icon: const Icon(Icons.attach_file),
|
hintText: "Registration No.",
|
||||||
onPressed: () async {
|
editable: true,
|
||||||
FilePickerResult? result =
|
required: true,
|
||||||
await FilePicker.platform.pickFiles(
|
),
|
||||||
type: FileType.custom,
|
const SizedBox(height: 10.0),
|
||||||
allowedExtensions: ['jpg', 'png', 'pdf'],
|
MyTextField(
|
||||||
);
|
controller: nameController,
|
||||||
if (result == null) return;
|
hintText: "Business Name",
|
||||||
final selectedFile = result.files.first;
|
editable: true,
|
||||||
setState(() {
|
required: true,
|
||||||
selectedLogo = selectedFile;
|
),
|
||||||
});
|
const SizedBox(height: 10.0),
|
||||||
setState(() {
|
MyDropdownField(
|
||||||
logonameController.text = selectedFile.name;
|
controller: typeController,
|
||||||
});
|
hintText: "Business Type",
|
||||||
},
|
dropdownOptions: const ["Doctors Office", "Other"],
|
||||||
|
required: true,
|
||||||
|
editable: true,
|
||||||
|
),
|
||||||
|
const SizedBox(height: 10.0),
|
||||||
|
Row(
|
||||||
|
mainAxisSize: MainAxisSize.max,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Flexible(
|
||||||
|
flex: 19,
|
||||||
|
child: MyTextField(
|
||||||
|
controller: logonameController,
|
||||||
|
hintText: "Logo",
|
||||||
|
editable: false,
|
||||||
|
required: true,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
Flexible(
|
||||||
],
|
flex: 1,
|
||||||
),
|
child: Center(
|
||||||
const SizedBox(height: 15.0),
|
child: IconButton(
|
||||||
Divider(
|
icon: const Icon(Icons.attach_file),
|
||||||
color:
|
onPressed: () async {
|
||||||
MzanziInnovationHub.of(context)?.theme.secondaryColor(),
|
FilePickerResult? result =
|
||||||
),
|
await FilePicker.platform.pickFiles(
|
||||||
const SizedBox(height: 15.0),
|
type: FileType.custom,
|
||||||
const Text(
|
allowedExtensions: ['jpg', 'png', 'pdf'],
|
||||||
"My Business User:",
|
);
|
||||||
style: TextStyle(
|
if (result == null) return;
|
||||||
fontWeight: FontWeight.bold,
|
final selectedFile = result.files.first;
|
||||||
fontSize: 25,
|
setState(() {
|
||||||
),
|
selectedLogo = selectedFile;
|
||||||
),
|
});
|
||||||
const SizedBox(height: 15.0),
|
setState(() {
|
||||||
MyDropdownField(
|
logonameController.text = selectedFile.name;
|
||||||
controller: titleController,
|
});
|
||||||
hintText: "Title",
|
},
|
||||||
dropdownOptions: const ["Doctor", "Assistant"],
|
),
|
||||||
required: true,
|
|
||||||
editable: true,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 10.0),
|
|
||||||
MyTextField(
|
|
||||||
controller: fnameController,
|
|
||||||
hintText: "Name",
|
|
||||||
editable: false,
|
|
||||||
required: true,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 10.0),
|
|
||||||
MyTextField(
|
|
||||||
controller: lnameController,
|
|
||||||
hintText: "Surname",
|
|
||||||
editable: false,
|
|
||||||
required: true,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 10.0),
|
|
||||||
Row(
|
|
||||||
mainAxisSize: MainAxisSize.max,
|
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
|
||||||
children: [
|
|
||||||
Flexible(
|
|
||||||
flex: 19,
|
|
||||||
child: MyTextField(
|
|
||||||
controller: signtureController,
|
|
||||||
hintText: "Signature",
|
|
||||||
editable: false,
|
|
||||||
required: true,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Flexible(
|
|
||||||
flex: 1,
|
|
||||||
child: Center(
|
|
||||||
child: IconButton(
|
|
||||||
icon: const Icon(Icons.attach_file),
|
|
||||||
onPressed: () async {
|
|
||||||
FilePickerResult? result =
|
|
||||||
await FilePicker.platform.pickFiles(
|
|
||||||
type: FileType.custom,
|
|
||||||
allowedExtensions: ['jpg', 'png', 'pdf'],
|
|
||||||
);
|
|
||||||
if (result == null) return;
|
|
||||||
final selectedFile = result.files.first;
|
|
||||||
setState(() {
|
|
||||||
selectedSignature = selectedFile;
|
|
||||||
});
|
|
||||||
setState(() {
|
|
||||||
signtureController.text = selectedFile.name;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
|
||||||
),
|
|
||||||
const SizedBox(height: 15.0),
|
|
||||||
MyDropdownField(
|
|
||||||
controller: accessController,
|
|
||||||
hintText: "Access",
|
|
||||||
dropdownOptions: const ["Full", "Partial"],
|
|
||||||
required: true,
|
|
||||||
editable: false,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 15.0),
|
|
||||||
SizedBox(
|
|
||||||
width: 500.0,
|
|
||||||
height: 100.0,
|
|
||||||
child: MyButton(
|
|
||||||
buttonText: "Add",
|
|
||||||
buttonColor:
|
|
||||||
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
|
||||||
textColor:
|
|
||||||
MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
|
||||||
onTap: () {
|
|
||||||
//print(business_id);
|
|
||||||
submitForm(business_id);
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
),
|
const SizedBox(height: 15.0),
|
||||||
],
|
Divider(
|
||||||
|
color:
|
||||||
|
MzanziInnovationHub.of(context)?.theme.secondaryColor(),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 15.0),
|
||||||
|
const Text(
|
||||||
|
"My Business User:",
|
||||||
|
style: TextStyle(
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontSize: 25,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 15.0),
|
||||||
|
MyDropdownField(
|
||||||
|
controller: titleController,
|
||||||
|
hintText: "Title",
|
||||||
|
dropdownOptions: const ["Doctor", "Assistant"],
|
||||||
|
required: true,
|
||||||
|
editable: true,
|
||||||
|
),
|
||||||
|
const SizedBox(height: 10.0),
|
||||||
|
MyTextField(
|
||||||
|
controller: fnameController,
|
||||||
|
hintText: "Name",
|
||||||
|
editable: false,
|
||||||
|
required: true,
|
||||||
|
),
|
||||||
|
const SizedBox(height: 10.0),
|
||||||
|
MyTextField(
|
||||||
|
controller: lnameController,
|
||||||
|
hintText: "Surname",
|
||||||
|
editable: false,
|
||||||
|
required: true,
|
||||||
|
),
|
||||||
|
const SizedBox(height: 10.0),
|
||||||
|
Row(
|
||||||
|
mainAxisSize: MainAxisSize.max,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Flexible(
|
||||||
|
flex: 19,
|
||||||
|
child: MyTextField(
|
||||||
|
controller: signtureController,
|
||||||
|
hintText: "Signature",
|
||||||
|
editable: false,
|
||||||
|
required: true,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Flexible(
|
||||||
|
flex: 1,
|
||||||
|
child: Center(
|
||||||
|
child: IconButton(
|
||||||
|
icon: const Icon(Icons.attach_file),
|
||||||
|
onPressed: () async {
|
||||||
|
FilePickerResult? result =
|
||||||
|
await FilePicker.platform.pickFiles(
|
||||||
|
type: FileType.custom,
|
||||||
|
allowedExtensions: ['jpg', 'png', 'pdf'],
|
||||||
|
);
|
||||||
|
if (result == null) return;
|
||||||
|
final selectedFile = result.files.first;
|
||||||
|
setState(() {
|
||||||
|
selectedSignature = selectedFile;
|
||||||
|
});
|
||||||
|
setState(() {
|
||||||
|
signtureController.text = selectedFile.name;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
const SizedBox(height: 15.0),
|
||||||
|
MyDropdownField(
|
||||||
|
controller: accessController,
|
||||||
|
hintText: "Access",
|
||||||
|
dropdownOptions: const ["Full", "Partial"],
|
||||||
|
required: true,
|
||||||
|
editable: false,
|
||||||
|
),
|
||||||
|
const SizedBox(height: 15.0),
|
||||||
|
SizedBox(
|
||||||
|
width: 500.0,
|
||||||
|
height: 100.0,
|
||||||
|
child: MyButton(
|
||||||
|
buttonText: "Add",
|
||||||
|
buttonColor: MzanziInnovationHub.of(context)!
|
||||||
|
.theme
|
||||||
|
.secondaryColor(),
|
||||||
|
textColor:
|
||||||
|
MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
|
onTap: () {
|
||||||
|
//print(business_id);
|
||||||
|
submitForm(business_id);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user