flutter_sunyard_printer 0.7.0
flutter_sunyard_printer: ^0.7.0 copied to clipboard

Flutter plugin allows to print thermal receipts using Sunyard device with a built-in printer

flutter_sunyard_printer #

Plugin allows to print thermal receipts using Sunmi device with a built-in printer. Tested on Sunmi V2.

Features #

  • fixedText: print text
  • fixedImage: print an image

Getting Started #

import 'package:flutter_sunyard_printer/flutter_sunyard_printer.dart';

// print a fixed text
SunyardPrinter.fixedText();

// print a local jpg asset
ByteData bytes = await rootBundle.load('assets/snes.jpg');
final buffer = bytes.buffer;
final imgData = base64.encode(Uint8List.view(buffer));
SunyardPrinter.fixedImage(imgData);

4
likes
70
pub points
41%
popularity

Publisher

freelogic.com.ar

Flutter plugin allows to print thermal receipts using Sunyard device with a built-in printer

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_sunyard_printer