Skip to content

oursky/formx-sdk-flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

formx_sdk_flutter

Using FormX SDK within Flutter application.

Platform Support

Android iOS MacOS Web Linux Windows
✅(SDK 26+) ✅ (iOS 14.0+)

Installation

In the dependencies: section of your pubspec.yaml, add the following line:

dependencies:
  formx_sdk_flutter: ^1.0.2

Setup

Android
  1. Set the minSdkVersion in android/app/build.gradle:
android {
    defaultConfig {
        minSdkVersion 26
    }
}
  1. Replace base activity with FlutterFragmentActivity
class MainActivity: FlutterFragmentActivity() {
}
iOS
  1. Update Podfile with:
target 'Runner' do

  ....skiped...

  pod 'FormX', :git => 'https://github.com/oursky/formx-sdk.git', tag: '0.3.0'

  ....skiped...
  1. Set minimum deployments to 14.0

Sample Usage

FormXCameraView

A native camera view to detect documents

  1. Obtain camera permission:

To use FormXCameraView, Camera permission must be granted. Recommend to use flutter plugin like permission_handler to handle it.

  1. Using FormXCameraView widget in flutter app:
Scaffold(
      body: _cameraPermissionStatus == PermissionStatus.granted
          ? FormXCameraView(
              controller: _controller,
              onClose: _onCloseCamera,
              onCaptured: _onCaptured,
              onCaptureError: _onCaptureError,
            )
      ...
)

For complete tutorial please refer to example app doc

Publish library

  1. Prepare release note (see commit c50ec90)

  2. Publish via flutter commands (see https://docs.flutter.dev/packages-and-plugins/developing-packages#publish)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published