save user info when refreshCurrentUser
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
7ec462737b
commit
c3abd3e2b3
@ -722,7 +722,6 @@ Widget _hoverAction(
|
|||||||
);
|
);
|
||||||
return Obx(
|
return Obx(
|
||||||
() => Container(
|
() => Container(
|
||||||
padding: padding,
|
|
||||||
margin: EdgeInsets.symmetric(horizontal: 1),
|
margin: EdgeInsets.symmetric(horizontal: 1),
|
||||||
decoration:
|
decoration:
|
||||||
(hover.value || hoverableWhenfalse?.value == false) ? deco : null,
|
(hover.value || hoverableWhenfalse?.value == false) ? deco : null,
|
||||||
@ -730,6 +729,6 @@ Widget _hoverAction(
|
|||||||
onHover: (value) => hover.value = value,
|
onHover: (value) => hover.value = value,
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
onTapDown: onTapDown,
|
onTapDown: onTapDown,
|
||||||
child: child)),
|
child: Container(padding: padding, child: child))),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -95,6 +95,7 @@ class UserModel {
|
|||||||
_parseAndUpdateUser(UserPayload user) {
|
_parseAndUpdateUser(UserPayload user) {
|
||||||
userName.value = user.name;
|
userName.value = user.name;
|
||||||
isAdmin.value = user.isAdmin;
|
isAdmin.value = user.isAdmin;
|
||||||
|
bind.mainSetLocalOption(key: 'user_info', value: jsonEncode(user));
|
||||||
}
|
}
|
||||||
|
|
||||||
// update ab and group status
|
// update ab and group status
|
||||||
|
Loading…
x
Reference in New Issue
Block a user