调整超出长度阈值

master
张萌 3 years ago
parent b3be7c8273
commit d90d55179a

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

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

Loading…
Cancel
Save