您可以使用Wrap
Widget build(BuildContext context) {
var data = [
{'name': 'UK'},
{'name': 'Banker'},
{'name': '29'},
{'name': 'Atheist'},
{'name': 'Graduated'},
{'name': '175 cm'},
{'name': 'tx'}
];
return Scaffold(
body: Center(
child: Wrap(
alignment: WrapAlignment.center,
spacing: 8.0, // gap between adjacent chips
runSpacing: 4.0, // gap between lines
children: data
.map((e) => Chip(
avatar: Icon(
Icons.account_balance,
size: 18,
),
label: Text(e['name']),
))
.toList())));
}