We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c73c83e commit f814dc9Copy full SHA for f814dc9
lib/src/utils/parse_live_list.dart
@@ -346,14 +346,14 @@ class ParseLiveListWidget<T extends ParseObject> extends StatefulWidget {
346
_ParseLiveListWidgetState<T>(query, removedItemBuilder);
347
348
static Widget defaultChildBuilder<T extends ParseObject>(
349
- BuildContext context, bool failed, T loadedData) {
+ BuildContext context, ParseLiveListElementSnapshot<T> snapshot) {
350
Widget child;
351
- if (failed) {
+ if (snapshot.failed) {
352
child = const Text('something went wrong!');
353
- } else if (loadedData != null) {
+ } else if (snapshot.hasData) {
354
child = ListTile(
355
title: Text(
356
- loadedData.get(keyVarObjectId),
+ snapshot.loadedData.get(keyVarObjectId),
357
),
358
);
359
} else {
0 commit comments