Flutter常用widget——————IntrinsicHe
2020-12-02 本文已影响0人
刘铁崧
用于保证同一个row里面widget高度一致
IntrinsicHeight(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Container(width: 50,color: Colors.green),
Container(height: 100,width: 50,color: Colors.red),
Container(width: 50,color: Colors.black)
],
),
);
效果:
