我们可以使用 AppBar 小部件添加标题。
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
leading: new Icon(Icons.mail),
title: new Text("Hello Flutter Header"),
),
body: new Center(
child: new MyButton(),
),
// **************************************
// I want to add application footer here
// **************************************
);
}
}
我们如何添加应用页脚?
最佳答案
有一个persistentFooterButtons
Scaffold
中的属性。
关于flutter - 如何添加应用程序页脚(使用 bottomNavigationBar),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49186528/