chat update
This commit is contained in:
@@ -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,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user