إصلاح أخطاء شاشة الكباتن من تحديث الذكاء الاصطناعي
This commit is contained in:
@@ -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),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user