如何在颤振中添加步进器布局?

问题描述 投票:-2回答:2

我不熟悉颤动,请指导我构建步进器布局。图片供参考:

enter image description here

flutter flutter-layout
2个回答
0
投票

您可以将带有五个Column()Row()用作子级。请参见以下示例:

Column(
    mainAxisAlignment: MainAxisAlignment.spaceEvenly,
    crossAxisAlignment: CrossAxisAlignment.center,
    children: <Widget>[
        Row(
            children: <Widget>[
                Image(),
                Text(),
            ]
        ),         
    ],
)

请参见出色的Flutter文档ColumnRow


0
投票

您需要使用Stepper小部件:

         child: Stepper(
            type: StepperType.vertical,
            steps: [
              Step(
                title: Text("Create a survey"),
                content: Text("Are you happy with our service?"),
              ),
              Step(
                title: Text("Add Questions"),
                content: Text("No questions added"),
              ),
            ],
          ),

有关更多信息,Flutter Stepper Documentation

© www.soinside.com 2019 - 2024. All rights reserved.