Flutter 自定义实现底部按钮思路
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.grey[200],
title: Text(
"自定义实现屏幕底部按钮",
style: TextStyle(color: Colors.black, fontFamily: 'pinshang'),
),
),
body: Column(
children: [
Expanded(
child: Text("自定义实现屏幕底部按钮")
),
Padding(
padding: const EdgeInsets.only(top: 28.0),
child: Row(
children: <Widget>[
Expanded(
child: RaisedButton(
padding: EdgeInsets.all(15.0),
child: Text("保存"),
color: Theme.of(context).primaryColor,
textColor: Colors.white,
onPressed: () async {
print("保存");
},
),
),
],
),
)
],
),
);
}