fix phone dashboard

This commit is contained in:
root
2026-05-27 03:11:45 -04:00
parent 7ca43ba2f3
commit 1112b04516
48 changed files with 1222 additions and 368 deletions
+22 -10
View File
@@ -12,6 +12,8 @@ class ReservationCard extends StatelessWidget {
@override
Widget build(BuildContext context) {
final fmt = DateFormat('MMM d, yyyy');
final cs = Theme.of(context).colorScheme;
return Card(
child: InkWell(
onTap: onTap,
@@ -39,34 +41,44 @@ class ReservationCard extends StatelessWidget {
const SizedBox(height: 4),
Text(
reservation.customer!.fullName,
style: const TextStyle(
fontSize: 13, color: Color(0xFF6B7280)),
style: TextStyle(
fontSize: 13,
color: cs.onSurfaceVariant,
),
),
],
const SizedBox(height: 10),
Row(
children: [
const Icon(Icons.calendar_today,
size: 14, color: Color(0xFF9CA3AF)),
Icon(
Icons.calendar_today,
size: 14,
color: cs.onSurfaceVariant.withValues(alpha: 0.8),
),
const SizedBox(width: 4),
Text(
'${fmt.format(reservation.startDate)}${fmt.format(reservation.endDate)}',
style: const TextStyle(
fontSize: 13, color: Color(0xFF6B7280)),
style: TextStyle(
fontSize: 13,
color: cs.onSurfaceVariant,
),
),
],
),
const SizedBox(height: 6),
Row(
children: [
const Icon(Icons.attach_money,
size: 14, color: Color(0xFF9CA3AF)),
Icon(
Icons.attach_money,
size: 14,
color: cs.onSurfaceVariant.withValues(alpha: 0.8),
),
const SizedBox(width: 4),
Text(
'\$${(reservation.totalAmount / 100).toStringAsFixed(2)}',
style: const TextStyle(
style: TextStyle(
fontWeight: FontWeight.w600,
color: Color(0xFF111928),
color: cs.onSurface,
),
),
const SizedBox(width: 8),