MyApp 类中添加了一个 LoginDemo 类作为 home 属性的参数。...第二步:class LoginDemo
设定脚手架的 appBar 属性来作为应用的标题,如下:
appBar: AppBar(
title: Text('Login Page'),
),
在本次的...UI 布局中,所有的挂件都会放在 Column 挂件中,然后存放在脚手架的 body 中。...'),
),
),
flutter-logo.png 文件存放在 asset/images 文件夹中。...*white*, fontSize: 25),
),
),
),
上面我们设定了 Container 挂件的 height 和 width 属性,所以 flatbutton 也会获取到相同的高度和宽度