MOD: no more lame assert if we have one card remaining and settings are set to viewing 3 cards

This commit is contained in:
JohnE 2024-11-29 23:48:11 -08:00
parent d63bcd5c76
commit 9c3d16ce94
1 changed files with 4 additions and 4 deletions

View File

@ -159,10 +159,10 @@ class CardSwiper extends StatefulWidget {
scale >= 0 && scale <= 1,
'scale must be between 0 and 1',
),
assert(
numberOfCardsDisplayed >= 1 && numberOfCardsDisplayed <= cardsCount,
'you must display at least one card, and no more than [cardsCount]',
),
// assert(
// numberOfCardsDisplayed >= 1 && numberOfCardsDisplayed <= cardsCount,
// 'you must display at least one card, and no more than [cardsCount]',
// ),
assert(
initialIndex >= 0 && initialIndex < cardsCount,
'initialIndex must be between 0 and [cardsCount]',