verifybloc_flutter

Creator: coderz1093

Last updated:

0 purchases

verifybloc_flutter Image
verifybloc_flutter Images

Languages

Categories

Add to Cart

Description:

verifybloc flutter

verifybloc_flutter #



Flutter版VerifyBloc SDK。
开始使用 #
设置运行环境(可选) #
import 'package:verifybloc_flutter/verifybloc_flutter.dart';

final VerifyblocFlutter _verifyblocFlutterPlugin = VerifyblocFlutter();
// Switch env, default to [VerifyblocEnv.prd]
_verifyblocFlutterPlugin.setEnv(VerifyblocEnv.uat);
copied to clipboard
‼️ 配置App数据(必须) #
// Configure your app data before starting verification
_verifyblocFlutterPlugin.initialize(
partnerId: 'partnerId',
appId: 'appId',
privateKey: 'privateKey',
);
copied to clipboard
设置SDK语言(可选) #
// Some examples of such identifiers: "en", "es-419", "hi-Deva-IN" and
// "zh-Hans-CN". See http://www.unicode.org/reports/tr35/ for technical
// details.
_verifyblocFlutterPlugin.setAppLocale('zh-Hans-CN');
copied to clipboard

Note
在Android上,使用setAppLocale()会改变当前应用的语言。因为这是通过LocaleManager API来实现的。

定制SDK界面(可选) #
_verifyblocFlutterPlugin.setTheme(VerifyblocTheme(
style: VerifyblocStyle.dark,
mainColor: Colors.amber,
buttonStyle: VerifyblocButtonTheme(
color: Colors.amber,
gradient: _isBtnGradient
? (Int32List.fromList(<int>[
Colors.orange.hex,
Colors.purple.hex,
]))
: null,
textColor: Colors.white,
borderRadius: 8,
),
));
copied to clipboard



Light
Dark









🚀 最后,发起认证 #
_verifyblocFlutterPlugin.startVerification(
// An identifier associated with the current user in your app.
userId: 'userId',
// or 'VerifyblocIdentityType.corporate'
identityType: VerifyblocIdentityType.personal,
);
copied to clipboard
通过VerifyblocIdentityType设定认证类型,目前支持以下2种类型



Value
Description




personal
个人


corporate
企业




如果你想了解更多关于认证类型的信息,请查阅VerifyBloc简介

了解更多 #

API Documentation
VerifyBloc Integration Documentation

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.