update invoice

This commit is contained in:
PhyoThandar
2020-10-14 20:56:46 +06:30
parent 1052278029
commit f2e8487122
14 changed files with 1758 additions and 292 deletions

View File

@@ -3,6 +3,7 @@ import 'dart:io';
import 'package:fcs/domain/entities/invoice.dart';
import 'package:fcs/helpers/theme.dart';
import 'package:fcs/pages/invoice/invoice_info.dart';
import 'package:fcs/pages/widgets/bottom_up_page_route.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@@ -79,8 +80,9 @@ class _InvoiceListRowState extends State<InvoiceListRow> {
onTap: () {
owner
? Navigator.of(context).push(CupertinoPageRoute(
builder: (context) =>
InvoiceEditor(invoice: _invoice)))
builder: (context) => PaymentPDFScreen(
path: pdfPath,
)))
: Navigator.of(context).push(CupertinoPageRoute(
builder: (context) => PaymentPDFScreen(
path: pdfPath,
@@ -180,18 +182,19 @@ class _InvoiceListRowState extends State<InvoiceListRow> {
CupertinoActionSheetAction(
child: Row(
children: <Widget>[
Icon(Icons.file_download),
Padding(
padding: const EdgeInsets.only(left: 8.0),
child: Text(
'Download',
'See detail',
style: TextStyle(fontSize: 16, color: Colors.black),
),
),
],
),
onPressed: () {
Navigator.pop(context);
//to go invoice info page
Navigator.of(context).push(CupertinoPageRoute(
builder: (context) => InvoiceInfoPage(invoice: _invoice)));
},
)
],