update cargo type input, add package count and carton count for shipment info
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user