flutter_pda_scanner

Creator: coderz1093

Last updated:

0 purchases

flutter_pda_scanner Image
flutter_pda_scanner Images
Add to Cart

Description:

flutter pda scanner

PDA Scanner #


A Flutter plugin 🛠 to scanning. Ready for PDA 🚀
github

Installation #
Add this to your package's pubspec.yaml file:
dependencies:
flutter_pda_scanner: ^0.2.9
copied to clipboard
Supported #

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

Usage #
/// 导入依赖
import 'package:flutter_pda_scanner/pda_source.dart';
import 'package:flutter_pda_scanner/pda_listener_mixin.dart';
import 'package:flutter_pda_scanner/pda_lifecycle_mixin.dart';

/// 自动管理pda生命周期 (自动初始化和自动释放),使用PdaLifecycleMixin混入app根组件状态。
/// 如果遇到多混入的情况请手动进行生命周期的初始化 `super.initPdaLifecycle()` 和 释放 `super.disposePdaLifecycle()`
class RootWidgetState extends State<RootWidget> with PdaLifecycleMixin<RootWidget> {
@override
Widget build(BuildContext context) {
// TODO
}
}

/// 混入 PdaListenerMixin 监听扫码事件
/// 如果遇到多混入的情况请手动进行生命周期的初始化 `super.registerPdaListener()` 和 释放 `super.unRegisterPdaListener()`
class PageAlphaState extends State<PageAlpha> with PdaListenerMixin<PageAlpha> {
var _code;

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

@override
void onEvent(Object event) {
// TODO: implement onEvent
}

@override
void onError(Object error) {
// TODO: implement onError
}
}
copied to clipboard
Contribute #
We would ❤️ to see your contribution!
License #
Distributed under the MIT license. See LICENSE for more information.
About #
Created by Shusheng.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.