buildBillPaymentCardPreview function
Widget
buildBillPaymentCardPreview(
- BillPaymentCardState state,
- AnimationController? borderAnimationController
Bill Payment Card preview builder Category 3: Complex/Composite - Container is static, Pay button is interactive
Implementation
Widget buildBillPaymentCardPreview(
BillPaymentCardState state,
AnimationController? borderAnimationController,
) {
return StateVariantsWrapper(
componentName: 'Bill Payment Card',
buildRestState: () => _buildInteractiveCard(state, borderAnimationController),
buildPressedState: () => _buildForcedState(state, forcePressed: true),
buildHoverState: () => _buildForcedState(state, forceHovered: true),
buildDisabledState: () => _buildDisabledCard(state),
buildCyclingState: (stateIndex) => _buildCyclingCard(state, stateIndex),
cycleDuration: const Duration(milliseconds: 2000),
);
}