सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
BluetoothPrint एक Flutter प्लगइन है जो विकासकर्ताओं को दोनों Android और iOS प्लेटफॉर्म पर ब्लूटूथ थर्मल प्रिंटर के साथ संचार करने वाले एप्लिकेशन बनाने में सक्षम बनाता है। यह संगत उपकरणों को टेक्स्ट और छवि जैसे प्रिंट कमांड भेजने की प्रक्रिया को सरल बनाता है। प्लगइन निम्न-स्तरीय ब्लूटूथ इंटरैक्शन को संभालता है, जिससे रसीद प्रिंटिंग, टिकटिंग और पॉइंट-ऑफ-सेल सिस्टम में बेहतर एकीकरण संभव होता है। दोनों प्रमुख मोबाइल ऑपरेटिंग सिस्टम के समर्थन के साथ, यह व्यवसायों के लिए विश्वसनीय, गतिशील प्रिंटिंग क्षमता के लिए एक क्रॉस-प्लेटफॉर्म समाधान प्रदान करता है।
उपयोग
रसीद प्रिंटिंग
टिकट उत्पादन
बिक्री बिंदु प्रणाली
इन्वेंटरी लेबलिंग
मोबाइल ऑर्डर प्रोसेसिंग
मुख्य विशेषताएँ
क्रॉस-प्लेटफॉर्म समर्थन (iOS और Android)
प्रिंट डेटा भेजने के लिए सरल API
पाठ और छवि प्रिंटिंग का समर्थन करता है
एम्बेडेड ब्लूटूथ डिवाइस खोज
विश्वसनीय कनेक्शन प्रबंधन
इनके लिए उपयुक्त
रिटेल ऐप्स
रेस्तरां POS प्रणाली
घटना टिकटिंग ऐप्स
फील्ड सर्विस टूल्स
मोबाइल इन्वेंटरी प्रबंधन
विचार योग्य बातें
संगत ब्लूटूथ थर्मल प्रिंटर की आवश्यकता होती है
विशिष्ट मॉडल के मुख्य छोटे ब्रांड के लिए सीमित
कुछ उपकरणों के लिए अतिरिक्त कॉन्फ़िगरेशन की आवश्यकता हो सकती है
प्लेटफॉर्म-विशिष्ट अनुमतियाँ आवश्यक हैं
हार्डवेयर विश्वसनीयता पर निर्भर करता है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
Introduction
BluetoothPrint is a bluetooth plugin for Flutter, a new mobile SDK to help developers build bluetooth thermal printer apps for both iOS and Android.(for example, Gprinter pt-280、pt-380、gp-1324、gp-2120 eg.)
Underway(please suggest)
[ ] print x,y positions
[ ] set paper size
[ ] more print examples
Map<String, dynamic> config = Map();
List<LineText> list = List();
list.add(LineText(type: LineText.TYPE_TEXT, content: 'A Title', weight: 1, align: LineText.ALIGN_CENTER,linefeed: 1));
list.add(LineText(type: LineText.TYPE_TEXT, content: 'this is conent left', weight: 0, align: LineText.ALIGN_LEFT,linefeed: 1));
list.add(LineText(type: LineText.TYPE_TEXT, content: 'this is conent right', align: LineText.ALIGN_RIGHT,linefeed: 1));
list.add(LineText(linefeed: 1));
list.add(LineText(type: LineText.TYPE_BARCODE, content: 'A12312112', size:10, align: LineText.ALIGN_CENTER, linefeed: 1));
list.add(LineText(linefeed: 1));
list.add(LineText(type: LineText.TYPE_QRCODE, content: 'qrcode i', size:10, align: LineText.ALIGN_CENTER, linefeed: 1));
list.add(LineText(linefeed: 1));
## GettingStartedByteData data = await rootBundle.load("assets/images/guide3.png");
List<int> imageBytes = data.buffer.asUint8List(data.offsetInBytes, data.lengthInBytes);
String base64Image = base64Encode(imageBytes);
list.add(LineText(type: LineText.TYPE_IMAGE, content: base64Image, align: LineText.ALIGN_CENTER, linefeed: 1));
This project is a starting point for a Flutter
[plug-in package](https://flutter.dev/developing-packages/),
a specialized package that includes platform-specific implementation code forAndroid and/or iOS.
await bluetoothPrint.printReceipt(config, list);
For help getting started with Flutter, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full API reference.
# .a filename must begin with lib, eg. 'libXXX.a'
s.vendored_libraries = '**/*.a'
error:'State restoration of CBCentralManager is only allowed for applications that have specified the "bluetooth-central" background mode'
info.plist add:
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Allow App use bluetooth?</string><key>NSBluetoothPeripheralUsageDescription</key><string>Allow App use bluetooth?</string><key>UIBackgroundModes</key><array><string>bluetooth-central</string><string>bluetooth-peripheral</string></array>