Last updated:
0 purchases
mobiprint3
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" }
copied to clipboard
To print basic text #
print(String txt);
e.g
Map<String,dynamic> printResponse = await Mobiprint3.print('Hello From flutter\n\n');
copied to clipboard
To print an image/bitmap #
custom(String text, Integer size);
e.g
Map<String,dynamic> printResponse = await Mobiprint3.custom('Headers',2);
copied to clipboard
size 1 to 3
To print an image/bitmap #
Not Yet functional
printImage(String image_src )
e.g
not functioning -- pending implementation
copied to clipboard
To check if paper is loaded (or if is in printer mode) #
checkPaper();
e.g
Map<String,dynamic> printResponse = await Mobiprint3.checkPaper();
copied to clipboard
To print a space #
space();
e.g
Map<String,dynamic> printResponse = await Mobiprint3.space();
copied to clipboard
End the printing session [print two terminating lines] #
end();
e.g
Map<String,dynamic> printResponse = await Mobiprint3.end();
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.