scan 0.0.1 copy "scan: ^0.0.1" to clipboard
scan: ^0.0.1 copied to clipboard

outdated

flutter widget to scan qrcode customly.Get qrcode from image.

scan #

flutter widget to scan qrcode customly.

Get qrcode from image.

currently is work for ios, android is developing

Features #

  • use ScanView in widget tree to show scan view.
  • get qrcode string from image path.

prepare #

ios

info.list

<key>NSCameraUsageDescription</key>
<string>Your Description</string>

<key>io.flutter.embedded_views_preview</key>
<string>YES</string>
scan: ^newest
import 'package:scan/scan.dart';

Usage #

  • show scan view in widget tree
ScanController controller = ScanController();
String qrcode = 'Unknown';

Container(
  width: 250, // custom wrap size
  height: 250,
  child: ScanView(
    controller: controller,
// custom scan area, if set to 1.0, will scan full area
    scanAreaScale: .7,
    scanLineColor: Colors.green.shade400,
    onCapture: (data) {
      // do something
    },
  ),
),

you can use controller.resume() and controller.pause() resume/pause scan

controller.resume();
controller.pause();
  • get qrcode string from image path
String result = await Scan.parse(imagePath);

License #

MIT License

173
likes
0
pub points
98%
popularity

Publisher

verified publisherchavesgu.com

flutter widget to scan qrcode customly.Get qrcode from image.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on scan