This is a simple unofficial plugin to enable basic printing functionality on the mobiwire mobiprint3 device
Feel free to make contributions to the package.
import 'package:mobiprint3/mobiprint3.dart';
The responses returned are in the format Map<String,dynamic>
sample response
{ "success" : true, "message" : "1" }
print(String txt);
e.g
Map<String,dynamic> printResponse = await Mobiprint3.print('Hello From flutter\n\n');
custom(String text, Integer size);
e.g
Map<String,dynamic> printResponse = await Mobiprint3.custom('Headers',2);
size 1 to 3
Not Yet functional
printImage(String image_src )
e.g
not functioning -- pending implementation
checkPaper(); e.g
Map<String,dynamic> printResponse = await Mobiprint3.checkPaper();
space(); e.g
Map<String,dynamic> printResponse = await Mobiprint3.space();
end(); e.g
Map<String,dynamic> printResponse = await Mobiprint3.end();