- Summary of my problem
I have 10k data set. Each data set to be displayed in one page & display pages with swipeview. I would like to create only 3 pages(left, center, right) filled with data. Rest of the data should be filled as I swipe left or right.
I would like to show the 10000 data set using the swipe view(horizontal swipe). Each data set to be displayed in one page. I used PageView to display the each data set.
PageView( children: [ MyDataSet1Widget(), MyDataSet2Widget(), MyDataSet3Widget(), ], )
Issue of my solution is not scalable as it forces me to create 10000 pages filled with data. This will take lot of memory & may not work properly.
How can I achieve by just creating only 3 page widget in swipe view & keep adding the data to pages as we swipe left or right.
I am a beginner to this flutter programming. Looking for inputs/suggestions. If any sample program will help.