我已经使用了Expanded和Flexible小部件,它们似乎都工作相同。
Expanded
Flexible
扩展和灵活之间有什么区别?
Scaffold( appBar: AppBar(), body: Column( children: [ Row( children: [ buildExpanded(), buildFlexible(), ], ), Row( children: [ buildExpanded(), buildExpanded(), ], ), Row( children: [ buildFlexible(), buildFlexible(), ], ), ], ), );