1、Flutter的项目目录只能由小写字母数字和’_'组成
2、Flutter中的Expanded组件只能作为Row、Column、Flex等组件的child进行空间扩展
3、TextField外部必须包裹一个Card、Dialog、Drawer或者Scaffold等支持Material的主题的Widget,否则会报如下错误:
TextField widgets require a Material widget ancestor.
In material design, most widgets are conceptually “printed” on a sheet of material. In Flutter’s material library, that material is represented by the Material widget. It is the Material widget that renders ink splashes, for instance. Because of this, many material library widgets require that there be a Material widget in the tree above them.
To introduce a Material widget, you can either directly include one, or use a widget that contains Material itself, such as a Card, Dialog, Drawer, or Scaffold.`