chat update

This commit is contained in:
Abhishek Mali
2026-02-27 10:12:51 +05:30
parent 0c1d3b8cb2
commit 98d184d901
7 changed files with 237 additions and 150 deletions

View File

@@ -3,6 +3,7 @@ import 'dart:math';
import 'package:flutter/material.dart';
import '../services/dio_client.dart';
import '../services/order_service.dart';
import 'order_screen.dart';
class OrderTrackScreen extends StatefulWidget {
final String orderId;
@@ -314,7 +315,12 @@ class _OrderTrackScreenState extends State<OrderTrackScreen>
),
SizedBox(height: 14 * scale),
_twoCol("Status", shipment!['status'], scale),
_twoCol(
"Status",
formatStatusLabel(shipment!['status']),
scale,
),
_twoCol("Shipment Date", _fmt(shipment!['shipment_date']), scale),
_twoCol("Origin", shipment!['origin'], scale),
_twoCol("Destination", shipment!['destination'], scale),
@@ -377,11 +383,12 @@ class _OrderTrackScreenState extends State<OrderTrackScreen>
),
SizedBox(width: 8 * scale),
Text(
(trackData["shipment_status"] ?? "-").toString().toUpperCase(),
formatStatusLabel(trackData["shipment_status"]),
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 13 * scale),
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 13 * scale,
),
),
],
),