Step indicator
Show the host-defined checkout sequence and its current step. Use Task list for KYC tasks with nested document progress.


PaymentStepIndicator(steps: steps, current: _step);Variants
Section titled “Variants”Variants: current step in a host-defined sequence.
Which variant when
Section titled “Which variant when”| Situation | Variant / composition | Payment example |
|---|---|---|
| Merchant checkout steps | current step | Pass current and steps from the host; the indicator never advances itself. |
Use Task list for nested KYC progress.
States
Section titled “States”The host supplies current progress. Completed and upcoming steps remain readable; the widget does not navigate or infer completion.
Do and don’t
Section titled “Do and don’t”Do: Pass current and steps from the host; the indicator never advances itself.
Don’t: Use it as an automatic payment-state machine.
Content guidelines
Section titled “Content guidelines”Use short step names that describe the checkout sequence. Do not mark a step complete before the host reports completion.
Accessibility
Section titled “Accessibility”Step labels and the current step communicate progress without relying on color.
PaymentStepIndicator
class PaymentStepIndicator extends StatelessWidget · lib/src/payment/payment_extras.dart
Where the customer is in a multi-step flow.
The bars are a visual aid; screen readers hear "Step 2 of 4: Checkout".
| Parameter | Type | Default | Description |
|---|---|---|---|
steps:required | List<String> | — | — |
current:required | int | — | Zero-based index of the active step. |