From c3abd3e2b3f2f7c7e5f366c20306724cb7c844d7 Mon Sep 17 00:00:00 2001 From: 21pages Date: Sun, 20 Aug 2023 17:14:52 +0800 Subject: [PATCH] save user info when refreshCurrentUser Signed-off-by: 21pages --- flutter/lib/common/widgets/peer_tab_page.dart | 3 +-- flutter/lib/models/user_model.dart | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flutter/lib/common/widgets/peer_tab_page.dart b/flutter/lib/common/widgets/peer_tab_page.dart index 259a5930006c..120ea7ff11cd 100644 --- a/flutter/lib/common/widgets/peer_tab_page.dart +++ b/flutter/lib/common/widgets/peer_tab_page.dart @@ -722,7 +722,6 @@ Widget _hoverAction( ); return Obx( () => Container( - padding: padding, margin: EdgeInsets.symmetric(horizontal: 1), decoration: (hover.value || hoverableWhenfalse?.value == false) ? deco : null, @@ -730,6 +729,6 @@ Widget _hoverAction( onHover: (value) => hover.value = value, onTap: onTap, onTapDown: onTapDown, - child: child)), + child: Container(padding: padding, child: child))), ); } diff --git a/flutter/lib/models/user_model.dart b/flutter/lib/models/user_model.dart index 2d8e5c61ae29..559e8be367d4 100644 --- a/flutter/lib/models/user_model.dart +++ b/flutter/lib/models/user_model.dart @@ -95,6 +95,7 @@ class UserModel { _parseAndUpdateUser(UserPayload user) { userName.value = user.name; isAdmin.value = user.isAdmin; + bind.mainSetLocalOption(key: 'user_info', value: jsonEncode(user)); } // update ab and group status