decoration: new BoxDecoration(color: Color(0xffF5F5F5)),
以上代碼,給目前頁,某個盒子設定背景顔色都可以
這個是目前頁的背景顔色
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
title: new Text('送出訂單'),
),
body: Container(
decoration: new BoxDecoration(color: Color(0xffF5F5F5)),
child: Column(
children: <Widget>[],
),
));
}
這個某個盒子設定顔色
class NoteIntegral extends StatelessWidget {
const NoteIntegral({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
decoration: new BoxDecoration(color:Color(0xffFFFFFF)),
child: child,
);
}
}