flutter - 如何防止 Flutter AppBar 菜单图标与 AppBar 中的滑块重叠?
问题描述
我对滑块的宽度有疑问,因为菜单与滑块有点重叠。如何编程滑块的自动宽度以防止重叠?
appBar: AppBar(
titleSpacing: 0,
title: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
IconButton(icon: Icon(Icons.brush)),
IconButton(icon: Icon(Icons.undo)),
IconButton(icon: Icon(Icons.redo)),
Slider(value: x, min: 0, max: 100, divisions: 100),
],
),
actions: <Widget>[
PopupMenuButton<String>(
...
解决方案
尝试在小部件之间添加 SizedBox(width: 10)
推荐阅读
- jquery - 将 Json 结果转换为列表并显示在 jquery-confirm 警报中
- python - KeyError: '[datetime.time(12, 19, 29) 不在索引中'
- c# - 安装后找不到 System.io.filenotfoundexception 图像
- php - PHP/MySQL:SyntaxError:JSON.parse:JSON 数据的第 1 行第 1 列出现意外字符
- python - Python :- 读取文本文件并将其转换为大写并写入第二个文件
- android - 我可以在非游戏应用中使用 GPGS 吗?
- android - 从服务器下载文件并将其保存到本地存储但无法使用该文件
- python - 递归或 itertool 而不是 for 循环
- angular - 仅在未定义时更新相邻输入字段
- delphi - Datasnap 客户端引发“无效序数”错误