scan_gun 2.0.2+2 copy "scan_gun: ^2.0.2+2" to clipboard
scan_gun: ^2.0.2+2 copied to clipboard

flutter实现扫码枪获取数据,禁止系统键盘弹窗

example/lib/main.dart

import 'package:example/test_scan_gun_withod_textfield.dart';
import 'package:flutter/material.dart';
import 'package:scan_gun/scan_gun.dart';

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'scan_gun_demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Text('扫码枪测试'),
        ),
        body: const TestScanGun(),
      ),
    );
  }
}
7
likes
105
pub points
76%
popularity

Publisher

unverified uploader

flutter实现扫码枪获取数据,禁止系统键盘弹窗

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, visibility_detector

More

Packages that depend on scan_gun