Update: 2026-05-08 14:11:53

This commit is contained in:
Hamza-Ayed
2026-05-08 14:11:53 +03:00
parent 155c2d0fc0
commit be0571648a
3 changed files with 98 additions and 27 deletions

View File

@@ -306,7 +306,6 @@ class CompaniesManagementView extends StatelessWidget {
void _showLinkJoFotaraDialog(BuildContext context, Map<String, dynamic> company, CompaniesManagementController controller) {
final clientIdC = TextEditingController();
final secretKeyC = TextEditingController();
final sequenceC = TextEditingController();
Get.dialog(
AlertDialog(
@@ -319,7 +318,6 @@ class CompaniesManagementView extends StatelessWidget {
const SizedBox(height: 16),
_editField('Client ID', clientIdC, Icons.vpn_key),
_editField('Secret Key', secretKeyC, Icons.lock),
_editField('Income Source Sequence (اختياري)', sequenceC, Icons.format_list_numbered),
],
),
),
@@ -332,7 +330,7 @@ class CompaniesManagementView extends StatelessWidget {
return;
}
Get.back();
controller.connectJoFotara(company['id'], clientIdC.text, secretKeyC.text, sequenceC.text);
controller.connectJoFotara(company['id'], clientIdC.text, secretKeyC.text, '');
},
style: ElevatedButton.styleFrom(backgroundColor: const Color(0xFF6366F1)),
child: const Text('ربط الآن', style: TextStyle(color: Colors.white)),