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),
        child: Chip(label: Text(shipment.status ?? "")),
      ),
    ],
  );
}
