♻️ Use drift instead for floor

This commit is contained in:
2024-09-14 00:30:33 +08:00
parent db808650e3
commit b14e55355f
24 changed files with 886 additions and 692 deletions

View File

@ -97,7 +97,7 @@ class ChatEvent extends StatelessWidget {
return Container(
constraints: const BoxConstraints(maxWidth: 480),
child: ChatEvent(
item: snapshot.data!.data,
item: snapshot.data!.data!,
isMerged: false,
isQuote: true,
),

View File

@ -62,7 +62,7 @@ class ChatEventList extends StatelessWidget {
return GestureDetector(
behavior: HitTestBehavior.opaque,
child: ChatEvent(
key: Key('m${item.uuid}'),
key: Key('m${item!.uuid}'),
item: item,
isMerged: isMerged,
chatController: chatController,