add invoice pdf
This commit is contained in:
@@ -8,9 +8,12 @@ import 'package:intl/intl.dart';
|
||||
import '../main/util.dart';
|
||||
import 'invoice_customer_list.dart';
|
||||
|
||||
typedef OnSelect(FcsShipment fcsShipment);
|
||||
|
||||
class InvoiceShipmentListRow extends StatefulWidget {
|
||||
final OnSelect onSelect;
|
||||
final FcsShipment fcsShipment;
|
||||
const InvoiceShipmentListRow({this.fcsShipment});
|
||||
const InvoiceShipmentListRow({this.fcsShipment, this.onSelect});
|
||||
|
||||
@override
|
||||
_InvoiceShipmentListRowState createState() => _InvoiceShipmentListRowState();
|
||||
@@ -35,10 +38,7 @@ class _InvoiceShipmentListRowState extends State<InvoiceShipmentListRow> {
|
||||
padding: EdgeInsets.only(left: 15, right: 15),
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
Navigator.of(context).push(CupertinoPageRoute(
|
||||
builder: (context) => InvoiceCustomerList(
|
||||
fcsShipment: _fcsShipment,
|
||||
)));
|
||||
if (widget.onSelect != null) widget.onSelect(widget.fcsShipment);
|
||||
},
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
|
||||
Reference in New Issue
Block a user