GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cloudloom/flutter-star-printer-plugin

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
android
android
 
 
example
example
 
 
lib
lib
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.metadata
.metadata
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
flutter_star_printer_plugin.iml
flutter_star_printer_plugin.iml
 
 
pubspec.lock
pubspec.lock
 
 
pubspec.yaml
pubspec.yaml
 
 

Repository files navigation

flutter_star_printer_plugin

A flutter plugin project for Star micronics printers.

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

import 'package:flutter_star_printer_plugin/flutter_star_printer_plugin.dart';

// find and list all the printers
List<PortInfo> list = await StarPrinter.portDiscovery("LAN");

// check status
// await StarPrinter.checkStatus( portName: port.portName, emulation: 'StarLine');

// Print command
PrintCommands commands = PrintCommands();

String title = "Example Title\n\n";
commands.push({
  'width': 2,
  'height': 2,
  'appendMultiple': title,
});

String text = "This is an example text for printing.\n";
commands.push({
  'append': text
});

commands.push({
  'appendCutPaper': "FullCutWithFeed"
});

await StarPrinter.print( portName: port.portName, emulation: 'StarLine', 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>

Documentation work in progress.

About

No description, website, or topics provided.

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

0 stars

Watchers

4 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.