imin_hardware_plugin 1.0.3
imin_hardware_plugin: ^1.0.3 copied to clipboard
A comprehensive Flutter plugin for controlling iMin POS device hardware features including printer, display, cashbox, light, NFC, RFID, scanner, MSR, electronic scale, serial port, segment display, fl [...]
iMin Hardware Plugin #
English | 中文文档
A comprehensive Flutter plugin for controlling iMin POS device hardware features.
Features #
| Module | Description |
|---|---|
| 📺 Display | Secondary display control |
| 💰 Cashbox | Cash drawer control |
| 💡 Light | LED indicator lights |
| 💳 NFC | NFC card reading |
| 📷 Scanner | Barcode/QR code scanner |
| 💳 MSR | Magnetic stripe reader |
| ⚖️ Scale | Electronic scale (Android 13+) |
| 🔌 Serial | Serial port communication |
| 🔢 Segment | Digital tube display |
| 🪟 Floating Window | Overlay window |
| 📸 Camera | Camera-based scanning |
| 📡 RFID | RFID tag operations |
| 📱 Device | Device information |
Supported Devices #
iMin D4, M2-Pro, Swan, Swift, Crane, Lark, Falcon series
Installation #
dependencies:
imin_hardware_plugin: ^1.0.0
flutter pub get
Quick Start #
import 'package:imin_hardware_plugin/imin_hardware_plugin.dart';
// Scanner
IminScanner.startScan();
IminScanner.scanStream.listen((code) => print('Scanned: $code'));
// NFC
IminNfc.startNfc();
IminNfc.nfcStream.listen((tag) => print('NFC: ${tag.id}'));
// Electronic Scale
await IminScaleNew.connectService();
await IminScaleNew.getData();
IminScaleNew.eventStream.listen((event) {
if (event.isWeight) print('Weight: ${event.data.net}kg');
});
Documentation #
📖 Complete Guides #
- Display Module - Secondary display control
- Cashbox Module - Cash drawer operations
- Light Module - LED indicator control
- NFC Module - NFC card reading
- Scanner Module - Barcode scanning
- MSR Module - Magnetic stripe reader
- Scale Module - Electronic scale
- Serial Module - Serial communication
- Segment Module - Digital display
- Floating Window Module - Overlay window
- Camera Module - Camera scanning
- RFID Module - RFID operations
- Device Module - Device information
Example App #
See example directory for complete demo application.
Requirements #
- Flutter >=3.3.0
- Dart >=3.0.0
- Android minSdkVersion 21
- iMin POS device
Permissions #
Add to android/app/src/main/AndroidManifest.xml:
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.NFC" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
Support #
📄 License #
BSD-3-Clause License - see LICENSE
Made with ❤️ by iMin Technology