2020-10-18 02:38:46 +06:30
|
|
|
import 'package:fcs/domain/entities/shipment.dart';
|
|
|
|
|
import 'package:fcs/helpers/theme.dart';
|
|
|
|
|
import 'package:fcs/pages/widgets/local_text.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
Widget getShipmentNumberStatus(BuildContext context, Shipment shipment) {
|
|
|
|
|
return Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
LocalText(
|
|
|
|
|
context,
|
|
|
|
|
'',
|
|
|
|
|
text: shipment.shipmentNumber ?? "",
|
|
|
|
|
color: primaryColor,
|
|
|
|
|
fontSize: 18,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.only(left: 8.0),
|
2020-10-19 05:13:49 +06:30
|
|
|
child: Chip(label: Text(shipment.status ?? "")),
|
2020-10-18 02:38:46 +06:30
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}
|