小编Rob*_*bie的帖子

如何在继续时修改 Step StepState

我正在关注本教程https://www.youtube.com/watch?v=izbkS2svuq4

并简要提及将 StepState 修改为 StepState.editing 以便您获得铅笔图标。

如何修改我所在步骤的 StepState,以便在我踏上/越过它时将状态更改为正在编辑(或完成)

class _SimpleWidgetState extends State<SimpleWidget> {
  int _stepCounter = 0;

  List<Step> steps = [
    Step(
      title: Text("Step One"),
      content: Text("This is the first step"),
      isActive: true
    ),
    Step(
      title: Text("Step Two"),
      content: Text("This is the second step"),
      isActive: true,
    ),
    Step(
      title: Text("Step Three"),
      content: Text("This is the third step"),
      isActive: true,
    ),
    Step(
      title: Text("Step Four"),
      content: Text("This is the fourth step"),
      isActive: true,
    ),
  ];

  @override
  Widget build(BuildContext context) { …
Run Code Online (Sandbox Code Playgroud)

flutter stepper

1
推荐指数
2
解决办法
3680
查看次数

标签 统计

flutter ×1

stepper ×1