Update: 2026-07-30 12:31:26

This commit is contained in:
Hamza-Ayed
2026-07-30 12:31:27 +03:00
parent ecfe756849
commit 7a576b7327
10 changed files with 307 additions and 84 deletions
@@ -27,11 +27,16 @@ class FinancialV2Page extends StatelessWidget {
borderRadius: BorderRadius.circular(10),
border: Border.all(color: cs.outline),
),
child: Icon(Icons.arrow_back_ios_new_rounded, color: cs.onSurfaceVariant, size: 16),
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)),
Text('الإدارة المالية المتقدمة',
style: TextStyle(
color: cs.onSurface,
fontSize: 18,
fontWeight: FontWeight.w700)),
const Spacer(),
IconButton(
icon: Icon(Icons.refresh_rounded, color: cs.onSurfaceVariant),
@@ -157,8 +162,7 @@ class FinancialV2Page extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(title,
style: TextStyle(
color: cs.onSurfaceVariant, fontSize: 12)),
style: TextStyle(color: cs.onSurfaceVariant, fontSize: 12)),
const SizedBox(height: 4),
Text(value,
style: TextStyle(
@@ -173,7 +177,8 @@ class FinancialV2Page extends StatelessWidget {
);
}
Widget _buildPaymentMethodBreakdown(Map<String, dynamic> stats, ColorScheme cs) {
Widget _buildPaymentMethodBreakdown(
Map<String, dynamic> stats, ColorScheme cs) {
double cash = double.tryParse(stats['cash_payments'].toString()) ?? 0;
double digital = double.tryParse(stats['digital_payments'].toString()) ?? 0;
double total = cash + digital;
@@ -204,8 +209,7 @@ class FinancialV2Page extends StatelessWidget {
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(label,
style: TextStyle(color: cs.onSurface, fontSize: 13)),
Text(label, style: TextStyle(color: cs.onSurface, fontSize: 13)),
Text('${value.toStringAsFixed(0)} ج.م',
style: TextStyle(color: color, fontWeight: FontWeight.bold)),
],
@@ -253,15 +257,13 @@ class FinancialV2Page extends StatelessWidget {
children: [
Text('${s['first_name']} ${s['last_name']}',
style: TextStyle(
color: cs.onSurface,
fontWeight: FontWeight.bold)),
color: cs.onSurface, fontWeight: FontWeight.bold)),
Text(s['phone'] ?? '',
style: TextStyle(
color: cs.onSurfaceVariant, fontSize: 12)),
const SizedBox(height: 4),
Text('${s['total_rides']} رحلة مكتملة',
style: TextStyle(
color: cs.tertiary, fontSize: 11)),
style: TextStyle(color: cs.tertiary, fontSize: 11)),
],
),
),
@@ -269,8 +271,8 @@ class FinancialV2Page extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.end,
children: [
Text('المستحقات',
style: TextStyle(
color: cs.onSurfaceVariant, fontSize: 10)),
style:
TextStyle(color: cs.onSurfaceVariant, fontSize: 10)),
Text('${s['total_earned']} ج.م',
style: TextStyle(
color: cs.primary,