Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frenkydema/sunmi_cloud_printer
Package for use sunmi cloud printer
https://github.com/frenkydema/sunmi_cloud_printer
android android-studio barcode dart-package flutter sunmi
Last synced: 3 months ago
JSON representation
Package for use sunmi cloud printer
- Host: GitHub
- URL: https://github.com/frenkydema/sunmi_cloud_printer
- Owner: FrenkyDema
- License: bsd-3-clause
- Created: 2022-08-03T07:11:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-30T00:49:43.000Z (about 1 year ago)
- Last Synced: 2024-08-22T23:29:41.346Z (5 months ago)
- Topics: android, android-studio, barcode, dart-package, flutter, sunmi
- Language: Java
- Homepage: https://pub.dev/packages/sunmi_cloud_printer
- Size: 143 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# sunmi_cloud_printer
A package for 80mm Kitchen Cloud Printer - SUNMI
## Important
**THIS PACKAGE WILL WORK ONLY IN ANDROID!**
---
## Class Name
```dart
SunmiCloudPrinter
```## Example
```dart
Future initPlatformState() async {
await SunmiCloudPrinter.setNetPrinter("IP_ADDRESS");
await SunmiCloudPrinter.connect();
}@override
Widget build(BuildContext context) {
return ElevatedButton(
onPressed: () async => {
await SunmiCloudPrinter.printText("Connection Test !"),
await SunmiCloudPrinter.lineWrap(3),
},
child: const Text("Print connection test")
);
```## Installation
```bash
flutter pub add sunmi_cloud_printer
```## What this package do
- [x] Write some text
- [x] Change font size
- [x] Jump (n) lines
- [x] Draw a divisor line
- [x] Bold mode on/off
- [x] Print all types of Barcodes
- [x] Print Qrcodes with custom width and error-level
- [x] Print image from asset or from web
- [x] Print rows like receipt with custom width and alignment
- [ ] Able to combine with some esc/pos code that you already have!
- [x] Cut paper - Dedicated method just to cut the line
- [ ] Printer serial no - Get the serial number of the printer
- [x] Printer version - Get the printer's version---
## Tested Devices
```bash
Sunmi NT311
```Inspired from [sunmi_printer_plus](https://github.com/brasizza/sunmi_printer)