2020-10-26 04:41:24 +06:30
|
|
|
import 'package:fcs/domain/entities/invoice.dart';
|
|
|
|
|
import 'package:fcs/helpers/theme.dart';
|
|
|
|
|
import 'package:fcs/pages/widgets/local_text.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
Widget getInvoiceStatus(BuildContext context, Invoice invoice) {
|
|
|
|
|
return Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
LocalText(
|
|
|
|
|
context,
|
|
|
|
|
'',
|
|
|
|
|
text: invoice.invoiceNumber ?? "",
|
|
|
|
|
color: primaryColor,
|
|
|
|
|
fontSize: 18,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.only(left: 8.0),
|
2024-01-26 16:56:20 +06:30
|
|
|
child: Chip(
|
|
|
|
|
shape: const StadiumBorder(
|
|
|
|
|
side: BorderSide(color: Colors.transparent)),
|
|
|
|
|
backgroundColor: Colors.grey.withOpacity(0.3),
|
|
|
|
|
label: Text(invoice.status ?? "")),
|
2020-10-26 04:41:24 +06:30
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}
|