cs_flutter_plugin_qrcode 0.0.3 copy "cs_flutter_plugin_qrcode: ^0.0.3" to clipboard
cs_flutter_plugin_qrcode: ^0.0.3 copied to clipboard

the flutter qr code scanning plugin supports android and ios

[TOC]

flutter_plugin_qrcode #

二维码扫描 同时支持 Android&IOS

Getting Started #

扫描效果

android

[README_images/android.gif]

IOS

[README_images/ios.gif]

引入方式 #

  dependencies:
    flutter_plugin_qrcode: ^1.0.1

##导入头文件

        import 'package:flutter_plugin_qrcode/flutter_plugin_qrcode.dart';

使用 #

  Future<void> getQrcodeState() async {
    String qrcode;
    try {
      qrcode = await FlutterPluginQrcode.getQRCode;
    } on PlatformException {
      qrcode = 'Failed to get platform version.';
    }

    if (!mounted) return;
    //获取到扫描的结果进行页面更新
    setState(() {
      _qrcode = qrcode;
    });
  }

关注公众号获取更多内容 #

[README_images/a1d43655.png]
0
likes
15
points
20
downloads

Publisher

verified publisher1v5.me

Weekly Downloads

the flutter qr code scanning plugin supports android and ios

License

unknown (license)

Dependencies

flutter

More

Packages that depend on cs_flutter_plugin_qrcode

Packages that implement cs_flutter_plugin_qrcode