add copntact number to business

This commit is contained in:
2024-08-16 10:21:54 +02:00
parent e589c4e0c1
commit 0aed0f2905
4 changed files with 37 additions and 8 deletions

View File

@@ -43,6 +43,7 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
final titleController = TextEditingController();
final signtureController = TextEditingController();
final accessController = TextEditingController();
final contactController = TextEditingController();
late PlatformFile selectedLogo;
late PlatformFile selectedSignature;
@@ -113,6 +114,7 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
"logo_name": logonameController.text,
"logo_path":
"${widget.signedInUser.app_id}/business_files/${logonameController.text}",
"contact_no": contactController.text,
}),
);
if (response.statusCode == 201) {
@@ -206,6 +208,13 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
editable: true,
),
const SizedBox(height: 10.0),
MIHTextField(
controller: contactController,
hintText: "Contact Number",
editable: true,
required: true,
),
const SizedBox(height: 10.0),
MIHFileField(
controller: logonameController,
hintText: "Logo",