|
|
|
|
@ -666,24 +666,7 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
|
|
|
|
|
|
|
|
|
|
loginAfter(result, context) async {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
// var familyFile = await sharedPref.getObject(FAMILY_FILE);
|
|
|
|
|
// var mainUser = await sharedPref.getObject(MAIN_USER);
|
|
|
|
|
// result = CheckActivationCode.fromJson(result);
|
|
|
|
|
// this.sharedPref.clear();
|
|
|
|
|
// this.sharedPref.setObject(FAMILY_FILE, familyFile);
|
|
|
|
|
// this.sharedPref.setObject(MAIN_USER, mainUser);
|
|
|
|
|
// result.list.isFamily = true;
|
|
|
|
|
// this.sharedPref.setObject(USER_PROFILE, result.list);
|
|
|
|
|
// this.sharedPref.setObject(LOGIN_TOKEN_ID, result.logInTokenID);
|
|
|
|
|
// this.sharedPref.setString(TOKEN, result.authenticationTokenID);
|
|
|
|
|
//
|
|
|
|
|
// authenticatedUserObject.isLogin = true;
|
|
|
|
|
// appointmentRateViewModel.isLogin = true;
|
|
|
|
|
// projectViewModel.isLogin = true;
|
|
|
|
|
// //this.checkIfUserAgreedBefore(result),
|
|
|
|
|
// Navigator.of(context).pushNamed(
|
|
|
|
|
// HOME,
|
|
|
|
|
// );
|
|
|
|
|
var currentLang = await sharedPref.getString(APP_LANGUAGE);
|
|
|
|
|
result = list.CheckActivationCode.fromJson(result);
|
|
|
|
|
var familyFile = await sharedPref.getObject(FAMILY_FILE);
|
|
|
|
|
Provider.of<ProjectViewModel>(context, listen: false)
|
|
|
|
|
@ -695,6 +678,7 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
|
|
|
|
|
result.list.isFamily = true;
|
|
|
|
|
}
|
|
|
|
|
this.sharedPref.setObject(MAIN_USER, mainUser);
|
|
|
|
|
this.sharedPref.setString(APP_LANGUAGE, currentLang);
|
|
|
|
|
this.sharedPref.setObject(USER_PROFILE, result.list);
|
|
|
|
|
this.sharedPref.setObject(FAMILY_FILE, familyFile);
|
|
|
|
|
this.sharedPref.setObject(LOGIN_TOKEN_ID, result.logInTokenID);
|
|
|
|
|
|