diff --git a/packages/flutter/lib/src/material/stepper.dart b/packages/flutter/lib/src/material/stepper.dart index 24c11a7f61..e4910d9727 100644 --- a/packages/flutter/lib/src/material/stepper.dart +++ b/packages/flutter/lib/src/material/stepper.dart @@ -195,6 +195,8 @@ class Stepper extends StatefulWidget { /// /// This callback which takes in a context and two functions: [onStepContinue] /// and [onStepCancel]. These can be used to control the stepper. + /// For example, keeping track of the [currentStep] within the callback can + /// change the text of the continue or cancel button depending on which step users are at. /// /// {@tool dartpad --template=stateless_widget_scaffold} /// Creates a stepper control with custom buttons.