What Is Different Between Child And Children Property In Flutter

Check Date

Works on 2019-01-31 15:22:44+0800

Question

What is different between child: and children: property in flutter?

Answer

child takes a single widget

child: Text('foo')

children takes a list of widgets

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

Reference

Published 31 Jan 2019

Bring the answer to lost vistor
MagicRabbit on Twitter