StepContainer constructor
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 contentactions
(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,
});