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,//设置浮动按钮位置
    )

 

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

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

 

相关文章:

  • 2021-09-22
  • 2021-12-05
  • 2021-07-30
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-15
  • 2021-12-09
  • 2021-12-04
  • 2022-12-23
  • 2021-09-03
相关资源
相似解决方案