For a Material
app, you can use a Scaffold widget; it provides a default banner, background color, and has API for adding drawers, snack bars, and bottom sheets. Then you can add the Center
widget directly to the body
property for the home page.
参考:https://flutter.dev/docs/development/ui/layout
翻译:正如其名 ,scaffold就是一个脚手架,有侧边栏,有title,还有底部的sheets.这个是为materail app准备的。