StepProgress constructor

const StepProgress({
  1. Key? key,
  2. required int currentStep,
  3. required int totalSteps,
  4. required dynamic onNext(
    1. int
    ),
  5. required dynamic onBack(
    1. int
    ),
  6. required dynamic onFinish(),
  7. dynamic activeColor = "00FF00",
  8. dynamic inactiveColor = "808080",
  9. dynamic backButtonColor = "000000",
  10. dynamic continueButtonColor = "00FF00",
  11. dynamic finishButtonColor = "0000FF",
  12. double buttonHeight = 50.0,
  13. bool enableFinishButtonGlow = true,
  14. 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);