flutter_star_prnt 1.0.4 copy "flutter_star_prnt: ^1.0.4" to clipboard
flutter_star_prnt: ^1.0.4 copied to clipboard

outdated

Flutter plugin for star micromics printers. This plugin allows both android and IOS devices to find star micromics printers and us them to print.

flutter_star_prnt #

Pub Version

Flutter plugin for Star micronics printers.

Native code based on React Native and Ionic/Cordova version
React native Version ➜ here
Ionic/Cordova Version ➜ here

Getting Started #

import 'package:flutter_star_prnt/flutter_star_prnt.dart';

// Find printers
List<PortInfo> list = await StarPrnt.portDiscovery(StarPortType.All);

list.forEach((port) async {
/// Check status
await StarPrnt.checkStatus(portName: port.portName,emulation: 'StarGraphic',)
}

///send print commands to printer
PrintCommands commands = PrintCommands();
commands.push({
 'appendBitmapText': "Hello World"
});
commands.push({
 'appendCutPaper': "FullCutWithFeed"
});
await StarPrnt.print(portName: port.portName, emulation: 'StarGraphic',printCommands: commands)

Android #

Permissions required depending on your printer:

<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.BLUETOOTH"></uses-permission>

Work in progress #

  • ❌ Connect/disconnect function for persistent connection
  • ❌ Helper function on appending print commands

Documentation work in progress, please refer to react native or Ionic/Cordova's documentations for command format #

31
likes
0
pub points
85%
popularity

Publisher

unverified uploader

Flutter plugin for star micromics printers. This plugin allows both android and IOS devices to find star micromics printers and us them to print.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_star_prnt