1 Container( 2 constraints: BoxConstraints( 3 maxWidth: 180, 4 maxHeight: 50, 5 ), 6 color: Colors.red, 7 child: Text('Container设置最大宽高'), 8 )
1 Container( 2 constraints: BoxConstraints( 3 maxWidth: 180, 4 maxHeight: 50, 5 ), 6 color: Colors.red, 7 child: Text('Container设置最大宽高'), 8 )