buildSoundTimerPanelPreview function
Widget
buildSoundTimerPanelPreview(
- SoundTimerPanelState state,
- AnimationController? borderAnimationController
Sound Timer Panel preview builder Category 3: Complex/Composite - Container is static, child buttons are interactive
Implementation
Widget buildSoundTimerPanelPreview(SoundTimerPanelState state, AnimationController? borderAnimationController) {
return StateVariantsWrapper(
componentName: 'Sound Timer Panel',
// Rest state shows interactive buttons
buildRestState: () => _buildInteractivePanel(state, borderAnimationController),
// For forced states, we show specific button states
buildPressedState: () => _buildPanelWithButtonState(state, borderAnimationController, buttonState: 'pressed'),
buildHoverState: () => _buildPanelWithButtonState(state, borderAnimationController, buttonState: 'hover'),
buildDisabledState: () => _buildDisabledPanel(state, borderAnimationController),
buildCyclingState: (stateIndex) => _buildCyclingPanel(state, borderAnimationController, stateIndex),
cycleDuration: const Duration(milliseconds: 2000),
);
}