StepContainer constructor

const StepContainer({
  1. Key? key,
  2. required Widget child,
  3. required List<Widget> actions,
})

Creates a StepContainer.

The child and actions parameters are required. Actions can be an empty list if no buttons are needed.

Parameters:

  • child (Widget, required): main step content
  • actions (List

Example:

StepContainer(
  child: FormFields(),
  actions: [
    Button(onPressed: previousStep, child: Text('Back')),
    Button(onPressed: nextStep, child: Text('Continue')),
  ],
);

Implementation

const StepContainer({
  super.key,
  required this.child,
  required this.actions,
});