PhomemoHelper class
This is a helper to create lables from text or images
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
generateImage(
TextSpan text, {required Size size, int padding = 0}) → Future< Image?> -
generateImageFromText(
TextSpan text, {required Size size, int padding = 0}) → Future< Image?> - Generate Image from Text in the corrected lable size format.
-
generateImageFromWidget(
GlobalKey< State< containerKey) → Future<StatefulWidget> >Image?> - to capture widget to image by GlobalKey in RenderRepaintBoundary
-
generateNameTag(
TextSpan text, {required Size size, int padding = 0, String? logoPath}) → Future< Image?> - If using the m220 and wish to have a name tag created.
-
getPrinterFromName(
String name) → PhomemoPrinter - If the name is a String convert to PhomemoPrinter enum.