SUNMI PRINTER ONLY DEVICE SUNMI.
Library Android native from https://docs.sunmi.com
dependencies{
implementation 'com.sunmi:printerlibrary:1.0.8'
}
Add this to your package's pubspec.yaml file:
sunmi_flutter_print:
git:
url: git://github.com/cuongbatit1/sunmi_flutter_print.git
ref: master
You can install packages from the command line:
with Flutter:
$ flutter pub get
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:sunmi_flutter_print/models.dart';
import 'package:sunmi_flutter_print/sunmi_flutter_print.dart';
https://github.com/cuongbatit1/sunmi_flutter_print/blob/master/example/lib/main.dart