简体   繁体   English

flutter UI:如何创建跟踪订单 UI?

[英]flutter UI : How to create Tracking order UI?

I want to create Order tracking UI, But I am not usnderstanding that how to create this.我想创建订单跟踪 UI,但我不知道如何创建它。

This is my UI,I want to create UI like this.这是我的 UI,我想创建这样的 UI。

在此处输入图像描述

You can use Stepper widget.您可以使用Stepper小部件。 Example from doc来自文档的示例


  int _index = 0;

  @override
  Widget build(BuildContext context) {
    return Stepper(
      currentStep: _index,
      onStepCancel: () {
      },
      onStepContinue: () {
      },
      onStepTapped: (int index) {
      },
      steps: <Step>[
        Step(
          title: const Text('Step 1 title'),
          content: Container(
              alignment: Alignment.centerLeft,
              child: const Text('Content for Step 1')),
        ),
        const Step(
          title: Text('Step 2 title'),
          content: Text('Content for Step 2'),
        ),
      ],
    );

Also check im_stepper还要检查im_stepper

You can use this for show tracking detail of your order.您可以使用来显示订单的跟踪详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM