fix(core): fix stream channel shows black screen while loading.
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -251,14 +251,14 @@ class StreamChannelState extends State<StreamChannel> {
|
|||||||
channel.state!.truncate();
|
channel.state!.truncate();
|
||||||
|
|
||||||
if (messageId == null) {
|
if (messageId == null) {
|
||||||
await channel.query(
|
final state = await channel.query(
|
||||||
messagesPagination: PaginationParams(
|
messagesPagination: PaginationParams(
|
||||||
limit: limit,
|
limit: limit,
|
||||||
),
|
),
|
||||||
preferOffline: preferOffline,
|
preferOffline: preferOffline,
|
||||||
);
|
);
|
||||||
channel.state!.isUpToDate = true;
|
channel.state!.isUpToDate = true;
|
||||||
return null;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
||||||
return channel.query(
|
return channel.query(
|
||||||
@@ -451,7 +451,7 @@ class StreamChannelState extends State<StreamChannel> {
|
|||||||
return widget.child;
|
return widget.child;
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
if (initialMessageId != null) {
|
if (_futures.length > 1) {
|
||||||
child = Material(child: child);
|
child = Material(child: child);
|
||||||
}
|
}
|
||||||
return child;
|
return child;
|
||||||
|
|||||||
Reference in New Issue
Block a user