update cargo type input, add package count and carton count for shipment info

This commit is contained in:
tzw
2025-03-26 15:51:47 +06:30
parent db3e290546
commit 17ca3e2a3f
11 changed files with 156 additions and 53 deletions

View File

@@ -1,4 +1,5 @@
import 'dart:io';
import 'package:fcs/pages/main/util.dart';
import 'package:flutter/services.dart';
import 'package:open_file/open_file.dart';
import 'package:path_provider/path_provider.dart';
@@ -53,7 +54,8 @@ Future<void> generateCartonPdf(Carton carton) async {
fontSize: 10,
)),
pw.SizedBox(height: 3),
pw.Text("${carton.actualWeight} lb",
pw.Text(
"${twoDecimalFormatted(double.tryParse(removeTrailingZeros(carton.actualWeight)) ?? 0)} lb",
style: pw.TextStyle(
fontSize: 10,
color: PdfColor.fromInt(0xFF757575)))