android - 我想为点击的特定图标添加行为
问题描述
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(){}
解决方案
推荐阅读
- c# - 设置 asp-items 而不获取“当前上下文中不存在该名称”的最简单示例
- sql-server - 子查询不返回值
- reactjs - 如何清除另一个页面中搜索输入字段的值
- react-native - 如何通过 snapchat 广告跟踪应用安装
- git - git describe --tags 不适用于 Jenkins 管道构建
- c - “错误:每当“如果”条件为假时,变量就被使用单元化”是什么意思?
- amazon-web-services - 我可以在动态框架上使用 SQL 上下文吗?
- mysql - MySQL 只导入一半的数据库
- azure - 如何限制对 ASP NET MVC 控制器(在 Azure 应用程序服务上)的访问以仅允许 Azure 内的请求?
- excel - Excel VBA 宏通过 OracleInProcServer 连接更新 SQL 语句