StepProgress constructor
const
StepProgress({
- Key? key,
- required int currentStep,
- required int totalSteps,
- required dynamic onNext(),
- required dynamic onBack(),
- required dynamic onFinish(),
- dynamic activeColor = "00FF00",
- dynamic inactiveColor = "808080",
- dynamic backButtonColor = "000000",
- dynamic continueButtonColor = "00FF00",
- dynamic 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);