首页 > 解决方案 > 我想为点击的特定图标添加行为

问题描述

bottomNavigationBar: new Material(

    color: Colors.green,
    child: new TabBar(

        controller: controller,
        tabs: <Widget>[




          new Tab(icon: new Icon(Icons.filter_center_focus),),
          new Tab(icon: new Icon(Icons.search),),

        ],


        ),
  ),

我想为每个点击的图标添加一个特定的功能。类似 (onPressed() {} 或 onTap(){}

标签: androiddartflutter

解决方案


推荐阅读