From 551a2a6b69aaad65da547b6e4f504e091da95363 Mon Sep 17 00:00:00 2001 From: Juyeong Lee <2jy22@naver.com> Date: Sat, 12 Sep 2020 06:40:03 +0900 Subject: [PATCH] Improve Stepper controlsBuilder docs (#63910) --- packages/flutter/lib/src/material/stepper.dart | 2 ++ 1 file changed, 2 insertions(+) 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.