Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change: 优化了应用启动流程 #182

Merged
merged 22 commits into from
Nov 20, 2021
Merged

change: 优化了应用启动流程 #182

merged 22 commits into from
Nov 20, 2021

Conversation

he0119
Copy link
Owner

@he0119 he0119 commented Nov 20, 2021

使用 SettingsController 来管理设置

大概可以降低 rebuild 的频率
通过缓存的 _loginUser 来判断
忘记 notifyListeners 了
这样应该就不会有什么问题了
应用启动时,更新 loginUser
登陆成功时,开始推送,且注册 Shortcut
登录失败时,显示提示
登出时,将 loginUser 设置为 null

这个 BLoC 不参与任何页面转跳,与除了 SnackBar 以外的页面显示
不过还有很多文件都不一定是正确的顺序,我就不一一排查了
@github-actions github-actions bot added change blog Blog issues board Board issues iot IoT issues labels Nov 20, 2021
@he0119 he0119 enabled auto-merge (squash) November 20, 2021 06:49
@he0119 he0119 merged commit eff53ae into dev Nov 20, 2021
@he0119 he0119 deleted the change/init-process branch November 20, 2021 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blog Blog issues board Board issues change iot IoT issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant