checkpoint
This commit is contained in:
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import '../models/delivery_route.dart';
|
||||
import '../theme/animation_system.dart';
|
||||
import '../theme/color_system.dart';
|
||||
import '../l10n/app_localizations.dart';
|
||||
|
||||
class RouteListItem extends StatefulWidget {
|
||||
final DeliveryRoute route;
|
||||
@@ -79,6 +80,7 @@ class _RouteListItemState extends State<RouteListItem>
|
||||
Widget build(BuildContext context) {
|
||||
final isDark = Theme.of(context).brightness == Brightness.dark;
|
||||
final statusColor = _getStatusColor(widget.route);
|
||||
final l10n = AppLocalizations.of(context)!;
|
||||
|
||||
// Collapsed view: Show only the badge
|
||||
if (widget.isCollapsed) {
|
||||
@@ -229,7 +231,7 @@ class _RouteListItemState extends State<RouteListItem>
|
||||
const SizedBox(height: 4),
|
||||
// Route details
|
||||
Text(
|
||||
'${widget.route.deliveredCount}/${widget.route.deliveriesCount} deliveries',
|
||||
l10n.routeDeliveries(widget.route.deliveredCount, widget.route.deliveriesCount),
|
||||
style: Theme.of(context)
|
||||
.textTheme
|
||||
.bodyMedium
|
||||
|
||||
Reference in New Issue
Block a user