controlsBuilder property
final
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 two functions,onStepContinue and onStepCancel. These can be used to control the stepper.
Sample Code:
Creates a stepper control with custom buttons.
Stepper(
controlsBuilder:
(BuildContext context, {VoidCallback onStepContinue, VoidCallback onStepCancel}) {
return Row(
children: <Widget>[
FlatButton(
onPressed: onStepContinue,
child: const Text('My Awesome Continue Message!'),
),
FlatButton(
onPressed: onStepCancel,
child: const Text('My Awesome Cancel Message!'),
),
],
),
},
steps: const <Step>[
Step(
title: Text('A'),
content: SizedBox(
width: 100.0,
height: 100.0,
),
),
Step(
title: Text('B'),
content: SizedBox(
width: 100.0,
height: 100.0,
),
),
],
)
Implementation
final ControlsWidgetBuilder controlsBuilder