bluetooth_print icon indicating copy to clipboard operation
bluetooth_print copied to clipboard

How to set perfect design?

Open deepRejoice opened this issue 1 year ago • 0 comments

Please help me for this issue

Code: `generateTokenId.value = resdata["SPPatientTokenID"].toString(); Map<String, dynamic> config = {}; config['width'] = 110; config['height'] = 10; config['gap'] = 0; list = []; list.add(LineText( type: LineText.TYPE_TEXT, x: 10, y: 20, content: "\n${pref!.getString("HospitalName")} | ${pref!.getString("HospitalDeptName")}", size: 20, align: LineText.ALIGN_RIGHT, )); list.add(LineText( type: LineText.TYPE_TEXT, x: 10, y: 20, content: "\n${DateFormat("dd-MM-yyyy").format(DateTime.parse(DateTime.now().toString()).toLocal())}(${DateFormat("h:mm a").format(DateTime.parse(DateTime.now().toString()).toLocal())})", size: 20, align: LineText.ALIGN_RIGHT, )); list.add( LineText( type: LineText.TYPE_TEXT, x: 10, y: 20, height: 20, content: "${generateTokenController.value.text}\n", size: 20, align: LineText.ALIGN_LEFT, ), );

await bluetoothPrint.printLabel(config, list);`

Output: + (1)

deepRejoice avatar May 13 '23 07:05 deepRejoice