19.8.12 记录Scaffold(脚手架)的常见属性及使用

Scaffold   有利于我们快速的构建页面,使用也是十分的方便。

下面记录一下其简单的使用方法

Scaffold(
      appBar: AppBar(
        title: Text('课程'),
      ),
      body: Text('课程页面'),
      bottomNavigationBar: BottomAppBar(
        child: Container(
          height: 50,
          child: Text('333'),
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {
          print('点击触发事件');
        },
        child: Icon(Icons.print),
      ),
      floatingActionButtonLocation: FloatingActionButtonLocation.endFloat,//设置浮动按钮位置
    )

另外在附一张其常见的属性表

原文地址:https://www.cnblogs.com/110-913-1025/p/11337940.html