-
Notifications
You must be signed in to change notification settings - Fork 2
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
change: 优化了应用启动流程 #182
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
大概可以降低 rebuild 的频率
通过缓存的 _loginUser 来判断
忘记 notifyListeners 了
这样应该就不会有什么问题了
应用启动时,更新 loginUser 登陆成功时,开始推送,且注册 Shortcut 登录失败时,显示提示 登出时,将 loginUser 设置为 null 这个 BLoC 不参与任何页面转跳,与除了 SnackBar 以外的页面显示
不过还有很多文件都不一定是正确的顺序,我就不一一排查了
github-actions
bot
added
change
blog
Blog issues
board
Board issues
iot
IoT issues
labels
Nov 20, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
使用 SettingsController 来管理设置