Service Layer medium complexity Shared Component mobile
0
Dependencies
1
Dependents
2
Entities
0
Integrations

Description

Generic BLoC-driven multi-step wizard controller managing step state, validation gating, and the single commit action that finalizes the flow. Shared between the Activity Registration Wizard and the Event Creation Wizard to avoid duplicating step-progression logic.

Feature: Event Creation

wizard-step-controller

Responsibilities

  • Track current step index and enforce forward progression only when step-level validation passes
  • Support backward navigation while preserving all previously entered data
  • Expose a single commit action that triggers persistence through the owning service
  • Reset wizard state on cancel or after successful submission

Interfaces

nextStep()
previousStep()
goToStep(int index)
commit() Future<void>
reset()
currentStep Stream<int>
canProceed Stream<bool>

Relationships

Dependents (1)

Components that depend on this component

Related Data Entities (2)

Data entities managed by this component