15
votes

What is the difference between child: and children: property in Flutter?

I started studying flutter for 2 weeks from Flutter official documentation and I don't find it as easy as studying Android.

1

1 Answers

49
votes

child takes a single widget

child: Text('foo')

children takes a list of widgets

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