dev-env Release Notes

1 view
Skip to first unread message

sameeraja bns

unread,
Feb 17, 2021, 6:14:06 AM2/17/21
to @dev
Devs,
dev_env of at_settings and at_widgets has got the following changes.
@persona app
1. Got integrated with a new Onboarding plugin.
2. Bug fixes.

Onboarding Plugin - Seamless onboarding plugin
1. Improvement of atsign_authentication_helper plugin that supports handling of switch/multiple @signs onboarding.
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.

If not used  atsign_authentication_helper  plugin earlier then refer README for the environment setup to use new onboarding plugin.

Please refer sample App for detailed usage.

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
Reply all
Reply to author
Forward
0 new messages