【发布时间】:2019-07-19 09:14:43
【问题描述】:
我需要一个步进器来显示某物的当前状态(分步)。因此,我想一次显示所有状态的内容。我删除了默认的继续和取消按钮,但它只显示了第一步的内容。
这是我的代码:
body: Center(
child: new Stepper(
steps: my_steps,
controlsBuilder: (BuildContext context,
{VoidCallback onStepContinue, VoidCallback onStepCancel}) {
return Row(
children: <Widget>[
Container(
child: null,
),
Container(
child: null,
),
],
);
},
),
),
这些是我的步骤:
List<Step> my_steps = [
new Step(
title: new Text("Step 1"),
content: new Text("Hello 1!")),
new Step(
title: new Text("Step 2"),
content: new Text("Hello 2!")
),
new Step(
title: new Text("Step 3"),
content: new Text("Hello World!"),
)
];
这里它只在第一步显示“Hello 1”。其余内容为空。
有人吗?
【问题讨论】: