第一次打开:
App启动 → 设备登录 → 保存Token → 进入主页
后续打开:
App启动 → 检测本地Token → Token有效 → 自动登录 → 进入主页
↓
Token失效/无效 → 自动设备登录 → 更新Token → 进入主页
This commit is contained in:
@@ -622,11 +622,12 @@ class KRLoginView extends GetView<KRLoginController> {
|
||||
/// 显示悬浮框
|
||||
void _showDropdown(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
final mediaQuery = MediaQuery.of(context);
|
||||
if (controller.isDropdownVisible) return;
|
||||
|
||||
controller.overlayEntry = OverlayEntry(
|
||||
builder: (_) => Positioned(
|
||||
width: MediaQuery.of(context).size.width - 40.w,
|
||||
builder: (BuildContext overlayContext) => Positioned(
|
||||
width: mediaQuery.size.width - 40.w,
|
||||
child: CompositedTransformFollower(
|
||||
link: controller.kr_layerLink,
|
||||
showWhenUnlinked: false,
|
||||
|
||||
Reference in New Issue
Block a user