mobiprint3 1.0.2

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 pub get

Alternatively, your editor might support flutter pub 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';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
32
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
95
Overall:
Weighted score of the above. [more]
65
Learn more about scoring.

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

  • Dart: 2.5.0
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.2

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 suggestions

Homepage URL is insecure. (-5 points)

Update the homepage field and use a secure (https) URL.

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 1.14.12
meta 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8