fix: example

This commit is contained in:
h.carnot 2022-03-24 10:39:17 +01:00
parent b5336cf589
commit 3a55bd312d
1 changed files with 2 additions and 6 deletions

View File

@ -247,12 +247,8 @@ class _RoomPageState extends State<RoomPage> {
print('On remove $i'); print('On remove $i');
_count--; _count--;
_listKey.currentState?.removeItem(i, (_, __) => const ListTile()); _listKey.currentState?.removeItem(i, (_, __) => const ListTile());
}, onHistoryReceived: (count) { }, onUpdate: () {
print('On History Received $count'); print('On update');
for (var i = 0; i < count; i++) {
_listKey.currentState?.insertItem(_count + i);
}
_count += count;
}); });
super.initState(); super.initState();
} }