首页 > 解决方案 > 如何在颤动中减小应用栏的大小

问题描述

我有一个表单页面。在页面顶部,我写下了表格的名称。但问题是这个名字占用了很多空间(高度)。有没有可能降低这个高度??我的形象:

在此处输入图像描述

我的代码

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(

标签: flutterdart

解决方案


在 AppBar 中使用 toolbarHeight 设置高度


推荐阅读