Skip to content

cuongbatit1/sunmi_flutter_print

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sunmi_flutter_print

SUNMI PRINTER ONLY DEVICE SUNMI.

Library Android native from https://docs.sunmi.com

dependencies{
  implementation 'com.sunmi:printerlibrary:1.0.8'
}

Installing

1. Depend on it

Add this to your package's pubspec.yaml file:

sunmi_flutter_print: 
    git:
      url: git://github.com/cuongbatit1/sunmi_flutter_print.git
      ref: master

2. Install it

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.

3. Import it

Now in your Dart code, you can use:

import 'package:sunmi_flutter_print/models.dart';
import 'package:sunmi_flutter_print/sunmi_flutter_print.dart';

Example:

https://github.com/cuongbatit1/sunmi_flutter_print/blob/master/example/lib/main.dart