buildStepperPreview function

Widget buildStepperPreview(
  1. StepperState state,
  2. AnimationController? borderAnimationController
)

Stepper preview builder Category 1: Simple Interactive

Implementation

Widget buildStepperPreview(
  StepperState state,
  AnimationController? borderAnimationController,
) {
  return StateVariantsWrapper(
    componentName: 'Stepper',
    buildRestState: () => _buildInteractiveStepper(state, borderAnimationController),
    buildHoverState: () => _buildForcedStateComponent(state, borderAnimationController, forceHovered: true),
    buildPressedState: () => _buildForcedStateComponent(state, borderAnimationController, forcePressed: true),
    buildDisabledState: () => _buildDisabledComponent(state, borderAnimationController),
    buildCyclingState: (stateIndex) => _buildCyclingComponent(state, borderAnimationController, stateIndex),
  );
}