小编Ern*_*lva的帖子

删除 Flutter PersistentFooterButtons 中的边距

我正在尝试删除 的默认边距persistentFooterButtons,但我找不到它,因为它收到了一个小部件列表。

\n

我正在使用extendBody: trueScaffold

\n

持久页脚按钮边距

\n

持久页脚按钮边距

\n
    persistentFooterButtons: [\n    Container(\n      color: const Color.fromRGBO(240, 240, 240, 0.9),\n      width: double.infinity,\n      child: Padding(\n        padding: const EdgeInsets.symmetric(horizontal: 2, vertical: 2),\n        child: Row(\n          children: [\n            Expanded(\n              child: GestureDetector(\n                child: Column(\n                  children: [\n                    const Image(\n                      image: AssetImage(\'assets/images/home.png\'),\n                      height: 35,\n                    ),\n                    Text(\n                      "In\xc3\xadcio",\n                      style: TextStyle(\n                        fontSize: 10,\n                        color: Theme.of(context).primaryColor,\n                      ),\n                    ),\n                  ],\n                ),\n              ),\n            ),\n          ],\n        ),\n      ),\n    )\n  ],\n
Run Code Online (Sandbox Code Playgroud)\n

flutter flutter-layout

5
推荐指数
1
解决办法
2009
查看次数

标签 统计

flutter ×1

flutter-layout ×1