如图所示,如何在应用栏上添加卡片?

时间:2020-10-07 14:09:15

标签: flutter flutter-layout

有什么办法可以做到这一点?

代码:

     `return Scaffold(
  appBar: PreferredSize(
    preferredSize: Size.fromHeight(237.0),
    child: AppBar(
      title: Text('MindSling'),
      backgroundColor: Colors.teal[400],
      centerTitle: true,
      actions: <Widget>[
        IconButton(
          icon: Icon(FontAwesomeIcons.bell),
          onPressed: () {},
        ),
      ],
      ),
);`

我认为根据这张图片,我必须在appBar小部件上执行此操作。

This is what I am trying to do.

0 个答案:

没有答案