2020-10-20 06:19:10 +06:30
|
|
|
import 'package:fcs/domain/entities/carton.dart';
|
|
|
|
|
import 'package:fcs/helpers/theme.dart';
|
|
|
|
|
import 'package:fcs/pages/widgets/local_text.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
Widget getCartonNumberStatus(BuildContext context, Carton carton) {
|
|
|
|
|
return Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
LocalText(
|
|
|
|
|
context,
|
|
|
|
|
'',
|
2021-09-10 12:00:08 +06:30
|
|
|
text: carton.cartonNumber ,
|
2020-10-20 06:19:10 +06:30
|
|
|
color: primaryColor,
|
|
|
|
|
fontSize: 18,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.only(left: 8.0),
|
2021-09-10 16:33:52 +06:30
|
|
|
child: Chip(label: Text(carton.status??"")),
|
2020-10-20 06:19:10 +06:30
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}
|