StepProgress constructor
const
StepProgress({
- Key? key,
- required int currentStep,
- required int totalSteps,
- required dynamic onNext(),
- required dynamic onBack(),
- required dynamic onFinish(),
- String activeColor = "00FF00",
- String inactiveColor = "808080",
- String backButtonColor = "000000",
- String continueButtonColor = "00FF00",
- String finishButtonColor = "0000FF",
- double buttonHeight = 50.0,
- bool enableFinishButtonGlow = true,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16),
Implementation
const StepProgress({
Key? key,
required this.currentStep,
required this.totalSteps,
required this.onNext,
required this.onBack,
required this.onFinish, // New required parameter
this.activeColor = "00FF00",
this.inactiveColor = "808080",
this.backButtonColor = "000000",
this.continueButtonColor = "00FF00",
this.finishButtonColor = "0000FF",
this.buttonHeight = 50.0,
this.enableFinishButtonGlow = true,
this.padding = const EdgeInsets.symmetric(horizontal: 16),
}) : super(key: key);