MOD: no more lame assert if we have one card remaining and settings are set to viewing 3 cards
This commit is contained in:
parent
d63bcd5c76
commit
9c3d16ce94
|
|
@ -159,10 +159,10 @@ class CardSwiper extends StatefulWidget {
|
||||||
scale >= 0 && scale <= 1,
|
scale >= 0 && scale <= 1,
|
||||||
'scale must be between 0 and 1',
|
'scale must be between 0 and 1',
|
||||||
),
|
),
|
||||||
assert(
|
// assert(
|
||||||
numberOfCardsDisplayed >= 1 && numberOfCardsDisplayed <= cardsCount,
|
// numberOfCardsDisplayed >= 1 && numberOfCardsDisplayed <= cardsCount,
|
||||||
'you must display at least one card, and no more than [cardsCount]',
|
// 'you must display at least one card, and no more than [cardsCount]',
|
||||||
),
|
// ),
|
||||||
assert(
|
assert(
|
||||||
initialIndex >= 0 && initialIndex < cardsCount,
|
initialIndex >= 0 && initialIndex < cardsCount,
|
||||||
'initialIndex must be between 0 and [cardsCount]',
|
'initialIndex must be between 0 and [cardsCount]',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue