flutter_esc_printer 0.1.0 copy "flutter_esc_printer: ^0.1.0" to clipboard
flutter_esc_printer: ^0.1.0 copied to clipboard

This package is used to print ticket on flutter application, it can print on both android and ios vai network and printer.

flutter_esc_printer #

Flutter ESC Printer originally inpire from esc_pos_utils flutter_bluetooth_serial. It can be used to print vai bluetooth mac address or network ip address.

Getting Started #

    _testPrint() async {
    const PaperSize paper = PaperSize.mm80;
    String address = "DC:0D:30:8A:B7:56"; // 192.168.10.10
    if(address.isIpAddress){
      //print vai ip address
      
        PrinterNetworkManager _printerNetworkManager = PrinterNetworkManager();
      _printerNetworkManager.selectPrinter(address);
      final res = await _printerNetworkManager.printTicket(await testTicket(paper));

      print(res.msg);
      
    }else if(address.isMacAddress) {
      //print vai mac address
      PrinterBluetoothManager _printerBluetoothManager = PrinterBluetoothManager();
      _printerBluetoothManager.selectPrinter(address);
      final res = await _printerBluetoothManager.printTicket(await testTicket(paper));
      
      print(res.msg);
    
    }else{
      //print("Error :e");
    }
  }
6
likes
40
points
18
downloads

Publisher

verified publishermylekha.app

Weekly Downloads

This package is used to print ticket on flutter application, it can print on both android and ios vai network and printer.

Repository (GitHub)

License

GPL-3.0 (license)

Dependencies

esc_pos_utils, flutter, flutter_bluetooth_serial

More

Packages that depend on flutter_esc_printer