Skip to content

esmauro/flutter_sunyard_printer

Repository files navigation

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);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published