ScaledList constructor
const
ScaledList({})
Implementation
const ScaledList({
Key? key,
required this.itemBuilder,
required this.itemCount,
required this.itemColor,
this.showDots = true,
this.cardWidthRatio = 0.6,
this.marginWidthRatio = 0.1,
this.selectedCardHeightRatio = 0.4,
this.unSelectedCardHeightRatio = 0.3,
}) : assert(cardWidthRatio + marginWidthRatio >= 0.5,
" Card width + margin width should exceed 0.5 of the screen"),
assert(selectedCardHeightRatio > unSelectedCardHeightRatio,
" selectedCardHeight should alwayes excceed the unSelectedCardHeight to show desire effect");