Update: 2026-05-07 23:06:22
This commit is contained in:
@@ -2,6 +2,8 @@ import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import '../controllers/companies_management_controller.dart';
|
||||
import 'add_company_view.dart';
|
||||
import '../../../core/utils/app_snackbar.dart';
|
||||
import '../../../app/routes/app_pages.dart';
|
||||
|
||||
class CompaniesManagementView extends StatelessWidget {
|
||||
const CompaniesManagementView({super.key});
|
||||
@@ -96,8 +98,10 @@ class CompaniesManagementView extends StatelessWidget {
|
||||
onSelected: (value) {
|
||||
if (value == 'delete') {
|
||||
_confirmDelete(context, controller, company['id']);
|
||||
} else if (value == 'employees') {
|
||||
Get.toNamed(AppRoutes.USERS_MANAGEMENT);
|
||||
} else {
|
||||
Get.snackbar('قريباً', 'الواجهة قيد البرمجة');
|
||||
AppSnackbar.showInfo('قريباً', 'سيتم تفعيل هذه الميزة قريباً');
|
||||
}
|
||||
},
|
||||
),
|
||||
@@ -117,7 +121,7 @@ class CompaniesManagementView extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
TextButton.icon(
|
||||
onPressed: () => Get.snackbar('إحصائيات', 'عرض إحصائيات الشركة'),
|
||||
onPressed: () => AppSnackbar.showInfo('إحصائيات', 'عرض إحصائيات الشركة'),
|
||||
icon: const Icon(Icons.bar_chart, size: 18),
|
||||
label: const Text('الإحصائيات'),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user