controlsBuilder property

ControlsWidgetBuilder? controlsBuilder

The callback for creating custom controls.

If null, the default controls from the current theme will be used.

This callback which takes in a context and a ControlsDetails object, which contains step information and two functions: onStepContinue and onStepCancel. These can be used to control the stepper. For example, reading the ControlsDetails.currentStep value within the callback can change the text of the continue or cancel button depending on which step users are at.

Creates a stepper control with custom buttons.

To create a local project with this code sample, run:
flutter create --sample=material.Stepper.controlsBuilder.1 mysample


final ControlsWidgetBuilder? controlsBuilder;