إصلاح أخطاء شاشة الكباتن من تحديث الذكاء الاصطناعي

This commit is contained in:
Hamza-Ayed
2026-07-26 13:44:07 +03:00
parent 330dfc6dba
commit e269cb9b70
21 changed files with 72156 additions and 71654 deletions
@@ -12,44 +12,62 @@ class FinancialV2Page extends StatelessWidget {
return Scaffold(
backgroundColor: cs.surface,
appBar: AppBar(
title: Text('الإدارة المالية المتقدمة',
style: TextStyle(fontWeight: FontWeight.bold, color: cs.onSurface)),
backgroundColor: cs.surface,
elevation: 0,
centerTitle: true,
iconTheme: IconThemeData(color: cs.onSurface),
actions: [
IconButton(
icon: Icon(Icons.refresh_rounded, color: cs.onSurface),
onPressed: () => controller.fetchAllFinancials(),
)
],
),
body: GetBuilder<FinancialV2Controller>(
builder: (ctrl) {
if (ctrl.isLoading) {
return Center(
child: CircularProgressIndicator(color: cs.primary));
}
return SingleChildScrollView(
padding: const EdgeInsets.all(16),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
body: Column(
children: [
Container(
padding: const EdgeInsets.fromLTRB(16, 50, 16, 16),
child: Row(
children: [
_buildMainFinancialStats(ctrl.stats, cs),
const SizedBox(height: 24),
_buildSectionTitle('طرق الدفع', cs),
_buildPaymentMethodBreakdown(ctrl.stats, cs),
const SizedBox(height: 32),
_buildSectionTitle('تسويات الكباتن (مستحقات معلقة)', cs),
_buildSettlementsList(ctrl.settlements, cs),
const SizedBox(height: 40),
GestureDetector(
onTap: () => Get.back(),
child: Container(
padding: const EdgeInsets.all(8),
decoration: BoxDecoration(
color: cs.surfaceContainerHighest,
borderRadius: BorderRadius.circular(10),
border: Border.all(color: cs.outline),
),
child: Icon(Icons.arrow_back_ios_new_rounded, color: cs.onSurfaceVariant, size: 16),
),
),
const SizedBox(width: 12),
Text('الإدارة المالية المتقدمة', style: TextStyle(color: cs.onSurface, fontSize: 18, fontWeight: FontWeight.w700)),
const Spacer(),
IconButton(
icon: Icon(Icons.refresh_rounded, color: cs.onSurfaceVariant),
onPressed: () => controller.fetchAllFinancials(),
),
],
),
);
},
),
Expanded(
child: GetBuilder<FinancialV2Controller>(
builder: (ctrl) {
if (ctrl.isLoading) {
return Center(
child: CircularProgressIndicator(color: cs.primary));
}
return SingleChildScrollView(
padding: const EdgeInsets.all(16),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
_buildMainFinancialStats(ctrl.stats, cs),
const SizedBox(height: 24),
_buildSectionTitle('طرق الدفع', cs),
_buildPaymentMethodBreakdown(ctrl.stats, cs),
const SizedBox(height: 32),
_buildSectionTitle('تسويات الكباتن (مستحقات معلقة)', cs),
_buildSettlementsList(ctrl.settlements, cs),
const SizedBox(height: 40),
],
),
);
},
),
),
],
),
);
}