पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

fp_bt_printer कवर
पैकेज विवरणv0.0.3

fp_bt_printer

ब्लूटूथ थर्मल प्रिंटर पर रसीदें प्रिंट करना (केवल एंड्रॉइड)।

Android
30-दिन डाउनलोड
35
लाइक
23
Pub अंक
125

पैकेज इंस्टॉल करें

flutter pub add fp_bt_printer

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

एंड्रॉइड डिवाइस के लिए विशेष रूप से डिज़ाइन किया गया ब्लूटूथ थर्मल प्रिंटर पर रसीद प्रिंट करने के लिए एक फ्लटर पैकेज। यह मोबाइल ऐप्स से सीधे प्रिंट कमांड भेजने के लिए सुगम संचार सुनिश्चित करता है। बिक्री बिंदु प्रणालियों, रिटेल किओस्क और आवश्यकता के अनुसार घूमते रसीद प्रिंटिंग के लिए आदर्श। पैकेज जोड़ने, कनेक्शन प्रबंधन और डेटा हस्तांतरण को कुशलतापूर्वक संभालता है। यह मूल एंड्रॉइड ब्लूटूथ API पर निर्भर है और iOS या अन्य प्लेटफॉर्म का समर्थन नहीं करता है।

उपयोग

  • बिक्री बिंदु प्रणाली
  • रिटेल रसीद प्रिंटिंग
  • मोबाइल किओस्क एप्लिकेशन
  • ईवेंट टिकट प्रिंटिंग
  • साइट पर आदेश प्रसंस्करण

मुख्य विशेषताएँ

  • ब्लूटूथ थर्मल प्रिंटर इंटीग्रेशन
  • Android-केवल समर्थन
  • रसीद पाठ और छवि प्रिंटिंग
  • स्वचालित प्रिंटर खोज
  • प्रिंट कमांड्स के लिए सरल API

इनके लिए उपयुक्त

  • एंड्रॉइड विकासकर्ता
  • रिटेल ऐप निर्माता
  • POS सिस्टम इंटीग्रेटर्स
  • छोटे व्यवसाय सॉफ्टवेयर
  • मोबाइल प्रिंटिंग समाधान

विचार योग्य बातें

  • एंड्रॉइड डिवाइस की आवश्यकता है
  • ब्लूटूथ थर्मल प्रिंटर तक सीमित
  • iOS समर्थन नहीं है
  • AndroidManifest.xml में सही अनुमतियाँ की आवश्यकता होती है
  • मुद्रक सामंजस्य की पुष्टि करने की आवश्यकता है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

fp_bt_printer

This library allows printing receipts on bluetooth thermal printers (android only). Support 58mm and 80mm printer.

It allows to print QR, BarCode, Images RasterImages with the esc_pos_utils package.

List bounded devices

Get list of bluetooth devices, it supports any version of bluetooth, not just BLE.

    List<PrinterDevice> devices = [];
    FpBtPrinter printer = FpBtPrinter();

    Future<void> getDevices() async {
        final response = await printer.scanBondedDevices();
        setState(() {
        devices = response;
        });
    }
Check device connected

You can check that the connection with the device is correct.

    Future<void> setConnet(PrinterDevice d) async {
        final response = await printer.checkConnection(d.address);
        print(response.message);
    }
Print data

This method recibe address of the printer and List of the data;

    FpBtPrinter printer = FpBtPrinter();
    final resp = await printer.printData(bytes, address: address);
    if (resp.success) {
     //print ok
    } else {
    print(resp.message); //print error
    }
Ticket with Styles usin :
List<int> getTicket() {
  final List<int> bytes = [];
  // Using default profile
  final profile = await CapabilityProfile.load();
    final generator = Generator(PaperSize.mm80, profile);
    List<int> bytes = [];

    // //  Print image:
    final ByteData data = await rootBundle.load('assets/wz.png');
    final Uint8List bytesImg = data.buffer.asUint8List();
    var image = decodePng(bytesImg);

    // resize
    var thumbnail =
        copyResize(image!, interpolation: Interpolation.nearest, height: 200);

    bytes += generator.text("fp_bt_printer",
        styles: PosStyles(align: PosAlign.center, bold: true));

    bytes += generator.imageRaster(thumbnail, align: PosAlign.center);

    bytes += generator.reset();
    bytes += generator.setGlobalCodeTable('CP1252');
    bytes += generator.feed(1);
    bytes += generator.text("HELLO PRINTER by FPV",
        styles: PosStyles(align: PosAlign.center, bold: true));
    bytes += generator.qrcode("https://github.com/FranciscoPV94",
        size: QRSize.Size6);
    bytes += generator.feed(1);
    bytes += generator.feed(1);

    final resp = await printer.printData(bytes, address: address);
  return bytes;
}

Tested and working with following Bluetooth Thermal Printers:

Xprinter Portable Thermal Printer

Model: Bixolon SPP-R310

Evidence

test receipt

Support me

If you think that this project has helped you with your developments, you can support this project, any support is much appreciated. Paypal

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 1 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।