From 3a55bd312d087f232ad653eae22fd520214cec32 Mon Sep 17 00:00:00 2001 From: "h.carnot" Date: Thu, 24 Mar 2022 10:39:17 +0100 Subject: [PATCH] fix: example --- example/main.dart | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/example/main.dart b/example/main.dart index 19b09e80..b619b430 100644 --- a/example/main.dart +++ b/example/main.dart @@ -247,12 +247,8 @@ class _RoomPageState extends State { print('On remove $i'); _count--; _listKey.currentState?.removeItem(i, (_, __) => const ListTile()); - }, onHistoryReceived: (count) { - print('On History Received $count'); - for (var i = 0; i < count; i++) { - _listKey.currentState?.insertItem(_count + i); - } - _count += count; + }, onUpdate: () { + print('On update'); }); super.initState(); }