flutter_uni_scanner 0.0.5 copy "flutter_uni_scanner: ^0.0.5" to clipboard
flutter_uni_scanner: ^0.0.5 copied to clipboard

A code scanning plug-in that supports camera scanning of one-dimensional codes and two-dimensional codes; supports selection and recognition from photo albums。

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_uni_scanner/flutter_uni_scanner.dart';


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

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

class _MyAppState extends State<MyApp> {

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('Test Scan'),
        ),
        body: Center(
          child: InkWell(
            onTap: () async{
              Map map = await FlutterUniScanner.startScan(tipText: "测试文字");
              print(map.toString());
            },
            child: Text("Start Scan",style: TextStyle(fontSize: 18, color: Colors.black),),
          ),
        ),
      ),
    );
  }

}
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A code scanning plug-in that supports camera scanning of one-dimensional codes and two-dimensional codes; supports selection and recognition from photo albums。

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_uni_scanner