1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-12 15:58:32 +00:00

Landing beta changes in master for the new stable release (#747)

This commit is contained in:
Andrew Brogdon
2021-03-03 11:44:35 -08:00
committed by GitHub
parent 6c81510d6e
commit 8c1cd0b049
101 changed files with 1006 additions and 1040 deletions

View File

@@ -32,7 +32,7 @@ class Catalog extends ChangeNotifier {
/// The size of the catalog. This is `null` at first, and only when the user
/// reaches the end of the catalog, it will hold the actual number.
int itemCount;
int? itemCount;
/// After the catalog is disposed, we don't allow it to call
/// [notifyListeners].
@@ -62,7 +62,7 @@ class Catalog extends ChangeNotifier {
// If the corresponding page is already in memory, return immediately.
if (_pages.containsKey(startingIndex)) {
var item = _pages[startingIndex].items[index - startingIndex];
var item = _pages[startingIndex]!.items[index - startingIndex];
return item;
}