appinioGmbH / flutter_packages

Dart and Flutter plugins/packages used and maintained by @appinioGmbH
193 stars 224 forks source link

[appinio_swiper] Avoid mapping unnecessary cards #61

Closed ricardodalarme closed 1 year ago

ricardodalarme commented 1 year ago

Description

The widget was mapping every single card, even if it wasn't in use. So if the card list had a million cards, it would map every card, and this would cost very high computational processing (O(n)). So to avoid mapping unnecessary cards, show only the cards that are useful: the front card and the back card