flutter-in-action
flutter-in-action copied to clipboard
《Flutter实战》书稿。第二版书稿已上传,请移步新Repo。
2.2 章节使用的代码中无new标记, 故修改2.1章节的。
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.35 to 7.0.36. Release notes Sourced from postcss's releases. 7.0.36 Backport ReDoS vulnerabilities from PostCSS 8. Changelog Sourced from postcss's changelog. 7.0.36 Backport ReDoS vulnerabilities from PostCSS...
Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
第四章线性布局中将cross axis翻译为纵轴略有不妥,因为纵轴名称暗示了方向性。 参考[MDN](https://developer.mozilla.org/zh-CN/docs/Glossary/Cross_Axis), 翻译为交叉轴较好。而我本人认为翻译为副轴更符合中文的表达习惯。
A minor typo.
Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4. Commits ebdf849 1.3.4 ac57872 move all allocUnsafes to allocs for easier maintenance c64c950 1.3.3 0598ba1 fix .. in encodingLength 010aedb 1.3.2 0d0d593 backport encodingLength...
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.16.3 to 4.16.6. Changelog Sourced from browserslist's changelog. 4.16.6 Fixed npm-shrinkwrap.json support in --update-db (by Geoff Newman). 4.16.5 Fixed unsafe RegExp (by Yeting Li). 4.16.4 Fixed unsafe...
 

1、地址 https://book.flutterchina.club/chapter7/inherited_widget.html 2、小白初入门,看的就是《Flutter 实战》,写的真的太好了。今天看了一下InheritedWidget章节,然后在本地跑了一遍,发现一个问题,就是 child: _TestWidget(),//子widget中依赖ShareDataWidget,这个代码,我直接用 Text(ShareDataWidget .of(context) .data .toString()),就报错,说data没有setter。我不懂,还有,我也想在按钮的点击事件中,去看一下data的数据,也不行。请大佬详细一点解惑,感谢🙏