uaepass 0.0.1
uaepass: ^0.0.1 copied to clipboard
UAE PASS service allows using a mobile device as a secure form of identification. UAE PASS automates and simplifies managing digital identity in mobile devices for users and can be used to - Seamless [...]
uaepass #

Installation #
In your pubspec.yaml file within your Flutter Project:
dependencies:
flutter_uaepass: <latest_version>
iOS #
Add any URL schemes passed to canLaunchUrl as LSApplicationQueriesSchemes
entries in your Info.plist file, otherwise it will return false.
Example:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>deeplink.flutter.dev</string>
<key>CFBundleURLSchemes</key>
<array>
<string>{custom App Scheme}</string>
</array>
</dict>
</array>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>uaepass</string> // for Production
<string>uaepassstg</string> // for Staging
</array>
Android #
Add any URL schemes passed to canLaunchUrl as <queries> entries in your
AndroidManifest.xml, otherwise it will return false in most cases starting
on Android 11 (API 30) or higher. A <queries>
element must be added to your manifest as a child of the root element.
Example:
<!-- Provide required visibility configuration for API level 30 and above -->
<queries>
<!-- If your app checks for SMS support -->
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="sms" />
</intent>
<!-- If your app checks for call support -->
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="tel" />
</intent>
</queries>
Use it #
import 'package:uaepass/uaepass.dart';
UaepassLoginButton();
Please make sure to dispose both controller widgets after use. For example by overriding the dispose method of the a StatefulWidget:
Example #
import 'package:flutter/material.dart';
import 'package:uaepass/uaepass.dart';
void main() {
Uaepass.init(env: UaePassEnv.stg, appScheme: '{custom App Scheme}');
runApp(
const MaterialApp(
home: Material(
child: Center(
child: UaepassLoginButton(),
),
),
),
);
}