pda_scanner 0.2.3 copy "pda_scanner: ^0.2.3" to clipboard
pda_scanner: ^0.2.3 copied to clipboard

outdated

This is a scanning plug-in for PDA to listen the scanned events and get scanning results.

PDA Scanner #

License Pub

A Flutter plugin 🛠 to scanning. Ready for PDA 🚀

github

pda_scanner.gif

Installation #

Add this to your package's pubspec.yaml file:

dependencies:
 pda_scanner: ^0.2.3

Supported #

  • SEUIC(小码哥)-PDA
  • IData(盈达聚力)-PDA
  • UROVO(优博讯)-PDA
  • HONEYWELL(霍尼韦尔) PDA

Usage #

/// 导入依赖
import 'package:pda_scanner/pda_source.dart';
import 'package:pda_scanner/pda_listener.dart';

/// 程序启动时初始化 PdaSource.
PdaSource.init();

/// 退出应用程序时释放 PdaSource 相关资源.
PdaSource.uninstall();

class PageAlpha extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => PageAlphaState();
}

/// 继承 PdaListenerState<PageAlpha> 监听扫码事件
class PageAlphaState extends PdaListenerState<PageAlpha> {
  var _code;

  @override
  Widget build(BuildContext context) {
    return null;
  }

  /// 监听扫描事件
  @override
  void onEvent(Object code) {}
}

Contribute #

We would ❤️ to see your contribution!

License #

Distributed under the MIT license. See LICENSE for more information.

About #

Created by Shusheng.

9
likes
0
pub points
57%
popularity

Publisher

unverified uploader

This is a scanning plug-in for PDA to listen the scanned events and get scanning results.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on pda_scanner