Skip to content

Gentleflow/qr_scan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qr_scan

Flutter QR Scan Plugin.

Example

flutter_qr_scan

  • support qr scan
  • support flashlight

Getting Started

// Identify images
String data = await QrScan.imgScan(File);
// Add view
Container(
   child: QrReaderView(
     width: 300,
     height: 300,
     callback: (controller){
       controller.startScan((data,_){
         // scan success 
       });
       controller.stopScan();
       controller.setFlashlight();
     },
   ),
)

For iOS

add app's info.list file

<key>io.flutter.embedded_views_preview</key>
<true/>
// Camera
<key>NSCameraUsageDescription</key>
<string>Camera Permissions</string>
// Photo
<key>NSPhotoLibraryUsageDescription</key>
<string>Photo Gallery Permissions</string>

Specific use can be referred to qr_scan_widget

About

Flutter QR Scan Plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published