ecp_sync_plugin

A new Flutter plugin.

Getting Started

Check how to install

Internet Connection Check

A flutter plugin for check internet connection is active of not.

Barcode Scanner

A flutter plugin for scanning 2D barcodes and QR codes.

Features

  • x Scan 2D barcodes
  • x Scan QR codes
  • x Control the flash while scanning
  • x Permission handling

Getting Started

Android

For Android, you must do the following before you can use the plugin:

  • Add the camera permission to your AndroidManifest.xml

    <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.CAMERA" />

Now you can depend on the barcode_scan plugin in your pubspec.yaml file:

dependencies:
  ...
  ecp_sync_plugin: ^3.7.7

Click "Packages get" in Android Studio or run flutter packages get in your project folder.

iOS

To use on iOS, you must add the the camera usage description to your Info.plist

<key>NSCameraUsageDescription</key>
<string>This app requires access to the Camera.</string>
<key>NSMicrophoneUsageDescription</key>
<string>This app requires access to the micro phone</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This app requires access to the photo library.</string>

Libraries

ecp_sync_plugin

Dart

VM

dart:ffi
Foreign Function Interface for interoperability with the C programming language. [...]

Web

dart:html
HTML elements and other resources for web-based applications that need to interact with the browser and the DOM (Document Object Model). [...]
dart:js
Low-level support for interoperating with JavaScript. [...]
dart:js_util
Utility methods to efficiently manipulate typed JSInterop objects in cases where the name to call is not known at runtime. You should only use these methods when the same effect cannot be achieved with @JS annotations. These methods would be extension methods on JSObject if Dart supported extension methods.