bixolon_printer 0.0.1
bixolon_printer: ^0.0.1 copied to clipboard
A Flutter plugin that provides seamless integration with Bixolon Bluetooth printers using Method Channels. Easily initialize the SDK, connect via Bluetooth, and print images using simple, developer-fr [...]
Bixolon Printer Plugin for Flutter A Flutter plugin that provides seamless integration with Bixolon Bluetooth printers using Method Channels. Easily initialize the SDK, connect via Bluetooth, and print images using simple, developer-friendly APIs. ๐ Features ๐ฑ Connect to Bixolon Bluetooth printers ๐งฉ Simple, clean API using method channels ๐จ Print images using Base64 data โ๏ธ Fully customizable print configuration (size, position, density, etc.) ๐ฏ Lightweight and optimized for real-world usage ๐ฆ Installation Add the dependency in your pubspec.yaml: dependencies: bixolon_printer: ^latest_version Then run: flutter pub get ๐ง Usage Guide
- Import the plugin import 'package:bixolon_printer/bixolon_printer.dart';
- Create an instance final _bixolonPrinterPlugin = BixolonPrinter();
- Initialize the SDK _bixolonPrinterPlugin.intiSDK();
- Connect to the printer via Bluetooth var address = await _bixolonPrinterPlugin.connectSDK( macAddress: result.address, ); result.address should be the MAC address obtained from your device Bluetooth scan.
- Print an image _bixolonPrinterPlugin.printSample( printConfig: PrintConfig( printQty: 1, base64Image: "BASE64 of images", dstHeight: 200, dstWidth: 400, verticalStartPosition: 5, horizontalStartPosition: 15, width: 400, level: 50, ), ); ๐ PrintConfig Parameters Property Description printQty Number of copies base64Image Base64-encoded image string dstHeight Output image height dstWidth Output image width verticalStartPosition Vertical print offset horizontalStartPosition Horizontal print offset width Print width level Darkness / density level ๐ฑ Platform Support Platform Status Android โ Supported iOS ๐ง Planned / TBD (update if needed) ๐งช Example App A complete working example is available in the example/ folder of this package. ๐ License Include your selected license (MIT recommended).