欢迎来到Flutter 的世界,在那里你可以组合不同的小部件树来获得你想要的结果.
Result:
Code个
IntrinsicWidth(
child: Column(
children: [
Text(
"Expenses",
style: TextStyle(color: Colors.white, fontSize: 30),
),
SizedBox(
height: 5,
child: Row(
children: [
Expanded(
flex: 3,
child: Container(
color: Colors.white,
),
),
SizedBox(
width: 5,
),
Expanded(
flex: 2,
child: Container(
color: Colors.white,
),
),
SizedBox(
width: 8,
),
Expanded(
flex: 1,
child: Container(
color: Colors.white,
),
),
],
),
),
],
),
)