调整超出长度阈值

master
张萌 3 years ago
parent b3be7c8273
commit d90d55179a

@ -22,7 +22,7 @@ public class PrintAsOrder {
private static void printBarCode(String code) { private static void printBarCode(String code) {
String width = "2"; String width = "2";
if (code.length() > 20) { if (code.length() > 18) {
width = "1"; width = "1";
} }
try { try {

@ -75,7 +75,7 @@ class _HomeState extends State<Home> {
TextButton( TextButton(
onPressed: () async { onPressed: () async {
await HyPrinter.printAsOrder( await HyPrinter.printAsOrder(
code: 'ASNB202112120001', code: 'ASASNB2021121200011',
fbaCode: '', fbaCode: '',
channel: "", channel: "",
country: '', country: '',

Loading…
Cancel
Save