brasizza / sunmi_printer

BSD 3-Clause "New" or "Revised" License
38 stars 45 forks source link

The function 'SunmiStyle' isn't defined. #16

Closed SamadDev closed 2 years ago

SamadDev commented 2 years ago

await SunmiPrinter.printText(name,style: SunmiStyle());

The function 'SunmiStyle' isn't defined. (Documentation) Try importing the library that defines 'SunmiStyle', correcting the name to the name of an existing function, or defining a function named 'SunmiStyle'.

brasizza commented 2 years ago

did u import the import 'package:sunmi_printer_plus/sunmi_style.dart'; ?

SamadDev commented 2 years ago

Ididn't see any wher to import,thanks