buildVideoCallInterfacePreview function
Widget
buildVideoCallInterfacePreview(
- VideoCallInterfaceState state,
- AnimationController? borderAnimationController
Video Call Interface preview builder Category 3: Complex/Composite - Container is static, call buttons are interactive
Implementation
Widget buildVideoCallInterfacePreview(
VideoCallInterfaceState state,
AnimationController? borderAnimationController,
) {
return StateVariantsWrapper(
componentName: 'Video Call Interface',
// Rest state shows interactive buttons
buildRestState: () => _InteractiveVideoCallInterface(state: state, borderAnimationController: borderAnimationController),
// For forced states, we show buttons in specific state
buildPressedState: () => _buildInterfaceWithButtonState(state, borderAnimationController, buttonState: 'pressed'),
buildHoverState: () => _buildInterfaceWithButtonState(state, borderAnimationController, buttonState: 'hover'),
buildDisabledState: () => _buildDisabledInterface(state, borderAnimationController),
buildCyclingState: (stateIndex) => _buildCyclingInterface(state, borderAnimationController, stateIndex),
cycleDuration: const Duration(milliseconds: 2000),
);
}