flutter_star_prnt_plus

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

flutter star prnt plus

flutter_star_prnt_plus #

This version is a fix and continuation for the original Flutter Star Prnt plugin that can be found here
All credit goes to the original publisher of the package.
Flutter plugin for Star micronics printers.
Native code based on React Native and Ionic/Cordova version
React native Version ➜ here
Ionic/Cordova Version ➜ here
Updating from 1.0.4 and lower #
If you're having trouble please run these commands
rm -rf ios/Pods && rm ios/Podfile.lock && flutter clean
copied to clipboard
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)
copied to clipboard
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>
copied to clipboard
Ios #
Need to add this into your info.plist for bluetooth printers
<key>UISupportedExternalAccessoryProtocols</key>
<array>
<string>jp.star-m.starpro</string>
</array>
copied to clipboard
Work in progress #

❌ Added documentations in readme

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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.