WIP: Support for pinned messages #49
1 changed files with 2 additions and 1 deletions
use stale data if needed instead of showing loading in pinned events drawer
commit
81bf1a8302
|
|
@ -51,7 +51,8 @@ class PinnedEventsDrawer extends HookConsumerWidget {
|
|||
],
|
||||
),
|
||||
),
|
||||
|
Henry-Hiles marked this conversation as resolved
Outdated
|
||||
AsyncData(:final value) => ListView.builder(
|
||||
AsyncData(:final value) ||
|
||||
AsyncLoading(:final value?) => ListView.builder(
|
||||
padding: .symmetric(horizontal: 8),
|
||||
itemCount: value.length,
|
||||
itemBuilder: (context, index) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue
I would say instead of this, a
SuperSliverViewshould be used, like we do in the main chat view, and instead of an extra card, just wrapEventRendererwith anInkWellor something. And then, you don't need to settextOnlyonEventRenderer.Okay, I take it back about
SuperSliverView, the performance ofListViewseems acceptable here.I've done my other suggestion with not using
textOnly.