update invoice

This commit is contained in:
PhyoThandar
2020-10-09 19:00:39 +06:30
parent 776ebf52ee
commit 81663b1224
6 changed files with 555 additions and 611 deletions

View File

@@ -1,6 +1,7 @@
import 'package:fcs/domain/entities/invoice.dart';
import 'package:fcs/helpers/theme.dart';
import 'package:fcs/localization/app_translations.dart';
import 'package:fcs/pages/main/util.dart';
import 'package:fcs/pages/widgets/local_text.dart';
import 'package:fcs/pages/widgets/multi_img_controller.dart';
import 'package:fcs/pages/widgets/multi_img_file.dart';
@@ -57,7 +58,8 @@ class _PaymentPageState extends State<PaymentPage> {
@override
Widget build(BuildContext context) {
// var images = isNew ? [] : _images;
final saveBox = fcsButton(context, getLocalString(context, 'btn.save'));
return LocalProgress(
inAsyncCall: _isLoading,
child: Scaffold(
@@ -128,13 +130,15 @@ class _PaymentPageState extends State<PaymentPage> {
color: Colors.black, fontSize: 16),
),
),
Container(
padding: EdgeInsets.only(left: 10),
child: MultiImageFile(
enabled: true,
controller: multiImgController,
title: "Receipt File",
)),
Expanded(
child: Container(
padding: EdgeInsets.only(left: 10),
child: MultiImageFile(
enabled: true,
controller: multiImgController,
title: "Receipt File",
)),
),
],
),
),
@@ -179,6 +183,8 @@ class _PaymentPageState extends State<PaymentPage> {
],
),
),
saveBox,
SizedBox(height: 10),
],
),
),