Justin-roy / Rfid_c72_plugin

Flutter Native SDK Plugin
Other
17 stars 12 forks source link
android dart flutter

Rfid C72 SDK Plugin

C72 deploys Chainway self-developed UHF RFID module CM2000-1, which provides perfect performance in UHF reading and writing Supporting protocals of EPC C1 GEN2 and ISO18000-6C and various frequency bands, C72 can read common RFID tags with high accuracy and speed in asset tracking, apparel inventory management, fleet management, toll road, warehousing, finance, etc.

This plugin supports Android 11.

Steps to follow

  1. Run command to add package:

    flutter pub add rfid_c72_plugin
  2. Create android/libs folder

  3. Download both build.gradle and DeviceAPI_ver20220518_release.aar and copy to android/libs

  4. In android/settings.gradle add the following line to the top of the file:

    include ':app',':libs' //libs is folder name
  5. In android/app/build.gradle add a reference to the libs folder in the dependencies section. Example

    dependencies {
    implementation project(":libs",)
    }
    //libs is folder name
  6. In android/app/build.gradle set minSdkVersion 19 or higher

    • Ready to use :D

Examples

import 'package:flutter/material.dart';
import 'package:rfid_c72_plugin_example/rfid_scanner.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: RfidScanner(),
    );
  }
}

Tested on Rfid C72 Device

Older version (0.0.1)

Added 2d Barcode Scan (Laser Scan)

New version (0.0.2)

2d Barcode Contributed By

Authors

Badges

MIT License GPLv3 License AGPL License

Support

For support, give a star ⭐ to repo.