dev_env of at_settings and
at_widgets has got the following changes.
@persona app
2. Bug fixes.
Onboarding Plugin - Seamless onboarding plugin
2. On Successful onboarding returns Map<String, AtClientService>,@sign in onboard method. Apps can use this map to avail SDK features like get,put,delete,getAtKeys and more.
3. The plugin generates a single .atKeys file instead of .zip file. But supports authenticating with .zip/.atKeys file.
4. Provide a widget for nextScreen parameter for automatic redirecting after successful onboarding.
Add following dependency to the pubspec.yaml file
at_onboarding_flutter:
git:
path: at_onboarding_flutter
ref: dev_env
Sample Usage Snippet
Without Onboarding Plugin:
FlatButton(
color: Colors.black12,
onPressed: () async {
await MyAppService().getInstance().onboard().then((value){
Navigator.push(context, MaterialPageRoute(builder: (context) => QRScanWidget()));
}).catchError((error){
await MyAppService.getInstance().authenticate(atsign,cramSecret)});
},
child: Text('Onboard my @sign'))
With Onboarding Plugin:
FlatButton(
color: Colors.black12,
onPressed: () async {
Onboarding(
context: context,
atClientPreference: atClientPrefernce,
domain: AppConstants.rootDomain,
appColor: Color.fromARGB(255, 240, 94, 62),
onboard: (atClientServiceMap, atsign) {
//assign this atClientServiceMap in the app.
},
onError: (error) {
//handle the error
},
nextScreen: DashBoard(),
fistTimeAuthNextScreen: Details()
)
},
child: Text('Onboard my @sign'))
--
Thanks and Regards
@sameeraja