secure_qr_scan_ecubix 1.0.18 secure_qr_scan_ecubix: ^1.0.18 copied to clipboard
A Flutter plugin for scanning secure QR codes with built-in zoom functionality. Provides easy-to-use methods for QR code scanning with customizable features. Ideal for apps requiring QR code security [...]
Secure QR Scan Ecubix #
The secure_qr_scan_ecubix
plugin allows you to scan secure QR codes with additional features like zoom functionality.
Getting Started #
To use this plugin, first install it by adding the following dependency in your pubspec.yaml
file:
dependencies:
secure_qr_scan_ecubix: ^1.0.18
Alternatively, you can install it using the command:
flutter pub add secure_qr_scan_ecubix
iOS Permissions #
To use this plugin on iOS, you need to add the following permissions to your Info.plist
file:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSCameraUsageDescription</key>
<string>Used to scan QR code</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>This app requires access to your photo library to save photos.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>We need your location to provide personalized services.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>We need your location to provide services even when the app is in the background.</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>We need your location to provide personalized services at all times.</string>
Explanation of Permissions: #
- NSAppTransportSecurity: Allows arbitrary loads, which is sometimes needed to enable network communication over HTTP instead of HTTPS. This setting is typically used during development or when accessing non-secure endpoints.
- NSCameraUsageDescription: Required for accessing the device's camera to scan QR codes. The message "Used to scan QR code" will be displayed to users when the app requests camera access.
- NSPhotoLibraryAddUsageDescription: Allows the app to save images to the user's photo library. This permission is necessary if you want to save the scanned QR code or related images.
Usage #
To access the QR scanning functionality, initialize the plugin and call the secureQRScan
method as shown below:
import 'package:secure_qr_scan_ecubix/secure_qr_scan_ecubix.dart';
final _secureQrScanEcubixPlugin = SecureQrScanEcubix();
_secureQrScanEcubixPlugin.secureQRScan();
Make sure to check for any necessary permissions, such as camera access, before scanning.
Features #
- Secure QR code scanning
- Zoom functionality for better scanning experience
Additional Information #
For more details and advanced usage, please refer to the plugin's documentation.