pda_scan 0.1.3

  • Readme
  • Changelog
  • Example
  • Installing
  • 68

#PAD Scan Plugin

A Flutter plugin to access scan function on urovo i6s200 device


To use this plugin, add pda_scan as a dependency in your pubspec.yaml file.


import 'package:pda_scan/pda_scan.dart';

//Instantiate it
var _pdaScan = PdaScan();

_pdaScan.onScanResult.listen((String code){
        // DO something with result code

0.0.1 #

  • 支持优博讯的PDA的扫描Flutter插件

0.0.2 #

  • 支持手机的扫描
  • 可以判断手机还是PDA,开启不同的扫描的策略、

0.0.3 #

  • 修复返回为空的异常

0.1.0 #

  • 优化了代码,减小包的体积
  • 修复了盘点优博讯PDA的代码逻辑
  • 修复了优博讯jar包引起的release环境的bug

0.1.1 #

  • 更改了插件的路径,防止错误

0.1.2 #

  • APP进入后,关掉系统的键盘输入模式,退出回复

  • 重点说明:优博讯的需要用flutter run --release构建项目,才能使用

0.1.3 #

  • 手机使用的时候,catch到扫描的错误


import 'package:flutter/material.dart';

import 'package:pda_scan/pda_scan.dart';
import 'package:pda_scan_example/test.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  _MyAppState createState() => _MyAppState();

class _MyAppState extends State<MyApp> {
  String result = " 没有显示内容";

  PdaScan pdaScan;

  void initState() {

  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          appBar: AppBar(
            title: const Text('Plugin example app'),
          body: Column(
            children: <Widget>[
              SearchEdit(controller: TextEditingController(),
                  hintText: '输入', scanCallback: ([r, e]) {
                    print('返回结果${r.toString()}|| ${e.toString()}');



Use this package as a library

1. Depend on it

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

  pda_scan: ^0.1.3

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:pda_scan/pda_scan.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 3, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6
  • Flutter: 1.12.13+hotfix.8

Health issues and suggestions

Document public APIs. (-1 points)

7 out of 7 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Format lib/pda_scan.dart.

Run flutter format to format lib/pda_scan.dart.

Maintenance suggestions

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
meta ^1.0.5 1.1.8
Transitive dependencies
collection 1.14.11 1.14.12
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies