update mybutton ton cater for new parameters

This commit is contained in:
2024-07-04 14:25:20 +02:00
parent 61ea9f9b44
commit 53f7a12990

View File

@@ -70,10 +70,13 @@ class _ProfileUserUpdateState extends State<ProfileUserUpdate> {
MyDropdownField(
controller: titleController,
signedInUser: widget.signedInUser,
dropdownOptions: const <DropdownMenuEntry<String>>[
DropdownMenuEntry(value: "Dr.", label: "Doctor"),
DropdownMenuEntry(value: "Assistant", label: "Assistant"),
],
hintText: "Title",
dropdownOptions: const <String>["Dr.", "Assistant"],
// const <DropdownMenuEntry<String>>[
// DropdownMenuEntry(value: "Dr.", label: "Dr."),
// DropdownMenuEntry(value: "Assistant", label: "Assistant"),
// ],
required: true,
),
const SizedBox(height: 10.0),
SizedBox(