首页 > 解决方案 > Flutter AppBar 中可以放置多少项才溢出

问题描述

问题:

我有actions我的,我想知道在溢出AppBar之前我可以安全地放入多少物品。AppBar

截屏:

在此处输入图像描述

代码:

appBar: AppBar(
  title: Text("Overflowing"),
  actions: <Widget>[
    IconButton(icon: Icon(Icons.call), onPressed: () {}),
    IconButton(icon: Icon(Icons.call_end), onPressed: () {}),
    IconButton(icon: Icon(Icons.call_made), onPressed: () {}),
    IconButton(icon: Icon(Icons.call_merge), onPressed: () {}),
    IconButton(icon: Icon(Icons.call_received), onPressed: () {}),
    IconButton(icon: Icon(Icons.call_missed), onPressed: () {}),
    IconButton(icon: Icon(Icons.call_missed_outgoing), onPressed: () {}),
    IconButton(icon: Icon(Icons.call_split), onPressed: () {}),
    IconButton(icon: Icon(Icons.clear_all), onPressed: () {}),
  ],
),

标签: dartflutter

解决方案


推荐阅读