flutter - 如何增加芯片尺寸?
问题描述
我尝试了一些方法来使芯片更大,但到目前为止我没有尝试过(如 SizedBox 等)。
在芯片的文档中也找不到任何东西:
https://api.flutter.dev/flutter/material/Chip-class.html
将不胜感激一些帮助
_buildChip() {
return Expanded(
child: Chip(
materialTapTargetSize: MaterialTapTargetSize.padded,
avatar: SizedBox(
height: 60,
width: 60,
child: CircleAvatar(
child: Icon(Icons.save),
)),
label: Text("awd"),
));
}
解决方案
推荐阅读
- solr - 有没有办法在不爬取日志的情况下访问 Apache Solr (8.3.1) 搜索查询?
- macos - 登录时终端中的 zsh 名称更改为数字
- ruby-on-rails - 刺激反射呈现整个页面,而不是反射根
- c - 尝试将指针分配给指针时,从“double”类型分配给“double *”类型时的类型不兼容
- html - Apache Webserver 无法识别新内容
- c++ - C++ auto 推断的类型
- java - Javac 是如何编译成可执行文件的?
- python - 如何正确地将 Python 中的 BCP 命令发送到远程服务器?
- jison - JISON:如何避免“dog”被解析为“do”?
- postgresql - 如何保持我的 Strapi 服务器(托管在 Heroku 和 Netlify)在线?