Update: 2026-08-03 13:37:04
This commit is contained in:
@@ -540,16 +540,24 @@ class _AdminHomePageState extends State<AdminHomePage>
|
||||
children: [
|
||||
Icon(Icons.schedule_rounded, color: cs.primary, size: 18),
|
||||
const SizedBox(width: 8),
|
||||
Text('توزيع الرحلات حسب الوقت',
|
||||
style: TextStyle(
|
||||
color: cs.onSurface,
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w600)),
|
||||
const Spacer(),
|
||||
if (total > 0)
|
||||
// العنوان مرن والعدد ثابت: بدون Expanded كان مجموع
|
||||
// العرضين يتجاوز الحاوية بكسور البكسل في العربية
|
||||
// (فاض 0.313 بكسل عند 1742 رحلة).
|
||||
Expanded(
|
||||
child: Text('توزيع الرحلات حسب الوقت',
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
color: cs.onSurface,
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w600)),
|
||||
),
|
||||
if (total > 0) ...[
|
||||
const SizedBox(width: 8),
|
||||
Text('${total.toInt()} رحلة',
|
||||
style: TextStyle(
|
||||
color: cs.onSurfaceVariant, fontSize: 11)),
|
||||
],
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
|
||||
Reference in New Issue
Block a user