Update: 2026-06-25 18:39:01

This commit is contained in:
Hamza-Ayed
2026-06-25 18:39:01 +03:00
parent a4d9d8e74c
commit 9b61bd50c8
11 changed files with 108 additions and 29 deletions

View File

@@ -18,6 +18,7 @@ class StaffController extends GetxController {
String selectedGender = 'Male';
String selectedRole = 'service'; // 'admin' or 'service'
String selectedCountry = 'Jordan';
bool isLoading = false;
@@ -43,6 +44,7 @@ class StaffController extends GetxController {
"birthdate": birthdateController.text.trim(),
"fingerprint": fingerprint,
"site": "main", // القيمة الافتراضية للفرع
"country": selectedCountry,
},
);

View File

@@ -87,6 +87,14 @@ class AddStaffPage extends StatelessWidget {
),
],
),
const SizedBox(height: 16),
_buildDropdown(
label: "البلد",
value: controller.selectedCountry,
items: const ['Jordan', 'Syria', 'Egypt'],
onChanged: (val) => controller.selectedCountry = val!,
fillColor: inputColor,
),
const SizedBox(height: 40),
GetBuilder<StaffController>(
builder: (controller) => SizedBox(