Files
fcs/lib/pages/shipment/widgets.dart

25 lines
676 B
Dart
Raw Normal View History

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';
2021-09-13 09:51:55 +06:30
Widget getShipmentNumberStatus(BuildContext context, Shipment? shipment) {
2020-10-18 02:38:46 +06:30
return Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
LocalText(
context,
'',
2021-09-13 09:51:55 +06:30
text: shipment?.shipmentNumber ?? "",
2020-10-18 02:38:46 +06:30
color: primaryColor,
fontSize: 18,
fontWeight: FontWeight.bold,
),
Padding(
padding: const EdgeInsets.only(left: 8.0),
2021-09-13 09:51:55 +06:30
child: Chip(label: Text(shipment?.status ?? "")),
2020-10-18 02:38:46 +06:30
),
],
);
}