flutter - 如何在颤动中减小应用栏的大小
问题描述
我有一个表单页面。在页面顶部,我写下了表格的名称。但问题是这个名字占用了很多空间(高度)。有没有可能降低这个高度??我的形象:
我的代码
class Form_ttn extends StatefulWidget {
@override
_SettingsScreenState createState() => _SettingsScreenState();
}
class _SettingsScreenState extends State<Form_ttn> {
bool lockInBackground = true;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('ТТН'), centerTitle: true,
backgroundColor: Colors.blueGrey,),
body: SingleChildScrollView(
解决方案
在 AppBar 中使用 toolbarHeight 设置高度
推荐阅读
- react-native - 无法在 iOS 上运行排毒测试
- design-patterns - 不同参数的 Kotlin 模式构建
- javascript - 这是缺失的,在反应输入 onChange
- python-3.x - Python - 从共享邮箱发送电子邮件而不使用“代表”
- python - 使用来自 python 的 ON DUPLICATE KEY UPDATE
- java - 如何为 container.listBlobs() 和 blob.exists() 生成单个 Account SAS
- asp.net-core - 如何修复 HMR Bundle Rebuild 不起作用
- ssl - 是否可以在 nginx 中使用 SSL Passthrough 重定向 TCP 连接
- python - 转换为非夏令时时区
- python - 如何使用超过 1 个 GPU 训练 PyTorch 迁移学习教程