mobiprint3 1.0.2

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 65

mobiprint3 #

This is a simple unofficial plugin to enable basic printing functionality on the mobiwire mobiprint3 device

Feel free to make contributions to the package.

Getting Started #

In your files #

import 'package:mobiprint3/mobiprint3.dart';

The responses returned are in the format Map<String,dynamic>

sample response

{ "success" : true, "message" : "1" }

To print basic text #

print(String txt);

e.g

Map<String,dynamic> printResponse = await Mobiprint3.print('Hello From flutter\n\n');

To print an image/bitmap #

custom(String text, Integer size);

e.g

Map<String,dynamic> printResponse = await Mobiprint3.custom('Headers',2);

size 1 to 3

To print an image/bitmap #

Not Yet functional

printImage(String image_src )

e.g

not functioning -- pending implementation

To check if paper is loaded (or if is in printer mode) #

checkPaper(); e.g

Map<String,dynamic> printResponse = await Mobiprint3.checkPaper();

To print a space #

space(); e.g

Map<String,dynamic> printResponse = await Mobiprint3.space();

End the printing session [print two terminating lines]

end(); e.g

Map<String,dynamic> printResponse = await Mobiprint3.end();

0.0.1 #

  • TODO: Describe initial release.

example/README.md

mobiprint3 #

This is a simple unofficial plugin to enable basic printing functionality on the mobiwire mobiprint3 device

Feel free to make contributions to the package.

Getting Started #

In your files #

import 'package:mobiprint3/mobiprint3.dart';

The responses returned are in the format Map<String,dynamic>

sample response

{ "success" : true, "message" : "1" }

To print basic text #

print(String txt);

e.g

Map<String,dynamic> printResponse = await Mobiprint3.print('Hello From flutter\n\n');

To print an image/bitmap #

custom(String text, Integer size);

e.g

Map<String,dynamic> printResponse = await Mobiprint3.custom('Headers',2);

size 1 to 3

To print an image/bitmap #

Not Yet functional

printImage(String image_src )

e.g

not functioning -- pending implementation

To check if paper is loaded (or if is in printer mode) #

checkPaper(); e.g

Map<String,dynamic> printResponse = await Mobiprint3.checkPaper();

To print a space #

space(); e.g

Map<String,dynamic> printResponse = await Mobiprint3.space();

End the printing session [print two terminating lines]

end(); e.g

Map<String,dynamic> printResponse = await Mobiprint3.end();

Use this package as a library

1. Depend on it

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


dependencies:
  mobiprint3: ^1.0.2

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:mobiprint3/mobiprint3.dart';
  
Version Uploaded Documentation Archive
1.0.2 Jan 29, 2019 Go to the documentation of mobiprint3 1.0.2 Download mobiprint3 1.0.2 archive
1.0.1 Jan 29, 2019 Go to the documentation of mobiprint3 1.0.1 Download mobiprint3 1.0.1 archive
1.0.0 Jan 29, 2019 Go to the documentation of mobiprint3 1.0.0 Download mobiprint3 1.0.0 archive
0.0.2 Jan 29, 2019 Go to the documentation of mobiprint3 0.0.2 Download mobiprint3 0.0.2 archive
0.0.1 Jan 29, 2019 Go to the documentation of mobiprint3 0.0.1 Download mobiprint3 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
39
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
65
Learn more about scoring.

We analyzed this package on Apr 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14
  • Flutter: 1.4.7

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Document public APIs. (-1 points)

10 out of 10 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Maintenance issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field http://ian.bixbyte.io was unreachable.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8