Container(child:Text('child'));
Container(color: Color.fromARGB(255, 255, 255, 255));
Container(
alignment:Alignment.center,
child: Text('alignment'),
color: Color.fromARGB(255, 255, 255, 255),
);
Container(
alignment: Alignment.center,
child: Text('constraints'),
color: Color.fromARGB(255, 255, 255, 255),
constraints: BoxConstraints(maxWidth: 300, maxHeight: 300, minWidth: 250, minHeight: 50),
);
Center(
child: Container(
alignment: Alignment.center,
child: Text('margin'),
color: Color.fromARGB(255, 255, 255, 255),
margin: EdgeInsets.only(left: 100,top: 50,right: 100,bottom: 50),
));
Center(
child: Container(
child: Text('padding'),
color: Color.fromARGB(255, 255, 255, 255),
padding: EdgeInsets.only(left: 5,top: 10,right: 5,bottom: 10),
));
Row(
children: <Widget>[Text('123,'), Text('456')],
);
Column(
children: <Widget>[Text('123,'), Text('456')],
);
可以將兩個以上的元件堆疊起來。