android - 我们可以通过 Trailing 或 SizedBox 在 AppBar 的右侧添加 Icons 吗?为什么和为什么不?
问题描述
在此处输入图像描述为什么我不能使用行、尾随和大小的框部分?
解决方案
考虑使用AppBar
actions
like
Scaffold(
appBar: AppBar(
actions: [Icon(Icons.ac_unit)], ///here
),
body: Text("Body"),
);
AppBar概述
推荐阅读
- kubernetes - pod 被视为失败的条件是什么
- database - 如何将数据从 Netezza 迁移到 Bigquery
- colors - 使用纯色的材质在使用 THREE.ACESFilmicToneMapping 时会被烧焦
- java - 如何在 servlet 代码中添加成功的警报消息
- vue.js - Vee 验证如何验证单选按钮
- c++ - 我如何编译电报 github 提供的电报 cpp 客户端?
- python - 遍历与用户输入不匹配的 SQLite DB 元组
- snowflake-cloud-data-platform - 在 Snowflake warehouse_load_history 表中,AVG_RUNNING 列到底是什么意思?
- sql - 在 SQLite3 中将英文单词排序在中文单词之前
- node.js - HTTP 请求返回状态码 0 未知错误