You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
samples/infinite_list
Parker Lougheed 90f0584108
Clean up SDK constraints and lints (#2471)
2 months ago
..
android Update Samples for 3.16 (#2085) 1 year ago
ios Update Samples for 3.16 (#2085) 1 year ago
lib Fixed ThemeData in the Flutter Samples unnecessarily includes useMaterial3 = true (Issue #2214) (#2217) 9 months ago
linux Update Samples for 3.16 (#2085) 1 year ago
macos Update Samples for 3.16 (#2085) 1 year ago
test infinite_list: Adjust lint rules and rebuild Android, iOS and Web runners (#823) 4 years ago
web Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 7 months ago
windows Update Samples for 3.16 (#2085) 1 year ago
.gitignore Add the infinite_list sample (#440) 5 years ago
.metadata Fixup for failing Beta CI (#2092) 1 year ago
README.md Add the infinite_list sample (#440) 5 years ago
analysis_options.yaml Create `analysis_defaults` package (#1654) 2 years ago
codelab_rebuild.yaml Update Samples for 3.16 (#2085) 1 year ago
pubspec.yaml Clean up SDK constraints and lints (#2471) 2 months ago

README.md

infinite_list

A Flutter sample app that shows an implementation of the "infinite list" UX pattern. That is, a list is shown to the user as if it was continuous although it is internally paginated. This is a common feature of mobile apps, from shopping catalogs through search engines to social media clients.

An animated gif of the app in action

This particular sample uses the Provider package but any other state management approach would do.

Goals for this sample

  • Show how UI code can be "shielded" from complex asynchrony and pagination logic using a ChangeNotifier.
  • Illustrate use of Selector from the Provider package.

Questions/issues

If you have a general question about Flutter, the best places to go are:

If you run into an issue with the sample itself, please file an issue.