children vs child dart

119

child takes a single widget

child: Text('foo')
children takes a list of widgets

children: <Widget>[Text('foo'), Text('bar')]

Comments

Submit
0 Comments