
ScrollableList2 uses the same pattern as ScrollableGrid, which requires the client to allocate widgets for every list item but doesn't inflate them unless they're actually needed for the view. It improves on the original ScrollableList by not requiring a rebuild of the whole visible portion of the list when scrolling. In fact, small scrolls can often be handled entirely by repainting.
Small examples of the Flutter widget framework
To run these, open a terminal in this directory and use the following command:
flutter start --checked -t foo.dart
...where foo.dart
is the file you want to run.