美文网首页
BottomAppBar

BottomAppBar

作者: 间歇性丶神经病患者 | 来源:发表于2021-06-21 16:48 被阅读0次
Scaffold(
        appBar: AppBar(
          title: Text('DEMO'),
        ),
        body: Column(),
        floatingActionButton: FloatingActionButton(
          onPressed: () {},
          child: Icon(Icons.icecream),
        ),
        floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
        bottomNavigationBar: BottomAppBar(
          shape: CircularNotchedRectangle(),
          child: Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              IconButton(
                icon: Icon(Icons.calendar_today_sharp),
                onPressed: () {},
              ),
              IconButton(
                icon: Icon(Icons.settings),
                onPressed: () {},
              ),
            ],
          ),
        ))
image.png

相关文章

网友评论

      本文标题:BottomAppBar

      本文链接:https://www.haomeiwen.com/subject/efgyyltx.html