printer_service 2.0.3 printer_service: ^2.0.3 copied to clipboard
A flutter plugin that prints esc commands to printers in different platforms such as android, ios, windows and different interfaces Bluetooth and BLE, TCP and USB. This is a forked project of thermal_printer
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add printer_service
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
printer_service: ^2.0.3
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:printer_service/discovery.dart';
import 'package:printer_service/esc_pos_utils_platform/esc_pos_utils_platform.dart';
import 'package:printer_service/esc_pos_utils_platform/src/barcode.dart';
import 'package:printer_service/esc_pos_utils_platform/src/capability_profile.dart';
import 'package:printer_service/esc_pos_utils_platform/src/commands.dart';
import 'package:printer_service/esc_pos_utils_platform/src/enums.dart';
import 'package:printer_service/esc_pos_utils_platform/src/generator.dart';
import 'package:printer_service/esc_pos_utils_platform/src/pos_column.dart';
import 'package:printer_service/esc_pos_utils_platform/src/pos_styles.dart';
import 'package:printer_service/esc_pos_utils_platform/src/qrcode.dart';
import 'package:printer_service/printer.dart';
import 'package:printer_service/thermal_printer.dart';