nyx_printer

Last updated:

0 purchases

nyx_printer Image
nyx_printer Images
Add to Cart

Description:

nyx printer

Nyx Printer #
Flutter Plugin that connect to Nyx devices Printer such as NB55.
Installation #
Install Nyx Printer with pub
flutter pub add nyx_printer
copied to clipboard

Print Image #
import 'package:nyx_printer/nyx_printer.dart';
...
final _nyxPrinterPlugin = NyxPrinter();

Future<void> printImage() async {
final image = await rootBundle.load("images/img.png");
await _nyxPrinterPlugin.printImage(image.buffer.asUint8List());
}
copied to clipboard
Print Text #
Future<void> printText() async {
await _nyxPrinterPlugin.printText(
"Grocery Store",
textFormat: NyxTextFormat(
textSize: 32,
align: NyxAlign.center,
font: NyxFont.monospace,
style: NyxFontStyle.boldItalic,
),
);
}
copied to clipboard
Print QR #
Future<void> printQrCode() async {
await _nyxPrinterPlugin.printQrCode(
"123456789",
width: 200,
height: 200,
);
}
copied to clipboard
Print QR #
Future<void> printBarcode() async {
await _nyxPrinterPlugin.printBarcode(
"123456789",
width: 300,
height: 40,
);
}
copied to clipboard
License #
MIT
Copyright (c) 2023 ALADDIN SID AHMED

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.