use SizedBox

This commit is contained in:
Salvatore Giordano
2020-02-25 13:10:40 +01:00
parent 4e073d47fd
commit 2269a3d684
4 changed files with 4 additions and 13 deletions
+1 -3
View File
@@ -79,9 +79,7 @@ class ChannelPreview extends StatelessWidget {
final lastMessage =
channelState.messages.isNotEmpty ? channelState.messages.last : null;
if (lastMessage == null) {
return SizedBox.fromSize(
size: Size.zero,
);
return SizedBox();
}
final prefix = lastMessage.attachments