床长人工智能基础
免费视频版 https://www.bilibili.com/s/video/BV1vZ4y1T7xp
官方网站 : https://www.captainbed.net/
用户名 tomas2011 , 新浪邮箱 , 密码常用
flutter globalkey 的用法
文档写道,globalkey的作用是:
GlobalKeys have two uses:
a) they allow widgets to change parents (注意是parent , 怎么判断一个widget是不是另一个的parent ? )anywhere in your app without losing state,
or they can be used to access information about another widget in a completely different part of the widget tree. An example of the first scenario might if you wanted to show the same widget on two different screens, but holding all the same state, you’d want to use a GlobalKey. (不是parent似乎也可以)
push flutter 项目时, 出现 both modified: .idea/workspace.xml 错误
此文件不上传也可以, 所以解决方法是在git仓库把它去掉
1 先在git 缓存删除 :
1 |
git rm -r --cached .idea |
2 再把 idea 文件夹加到 gitignore
1 |
adding /.idea to .gitignore |
解决方法来源: http://stackoverflow.com/questions/57091527/what-exactly-is-idea-workspace-xml