From baf1c0a0981ae4eaeadfe33ccd8b14726ae3ed3b Mon Sep 17 00:00:00 2001 From: tibfox Date: Mon, 5 Sep 2022 22:49:09 +0200 Subject: [PATCH] fixes --- .../Suggestions/SuggestedChannels/SuggestedChannels.dart | 4 ++-- lib/ui/widgets/Suggestions/UserList.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ui/widgets/Suggestions/SuggestedChannels/SuggestedChannels.dart b/lib/ui/widgets/Suggestions/SuggestedChannels/SuggestedChannels.dart index c8597377..dc23fd04 100644 --- a/lib/ui/widgets/Suggestions/SuggestedChannels/SuggestedChannels.dart +++ b/lib/ui/widgets/Suggestions/SuggestedChannels/SuggestedChannels.dart @@ -19,12 +19,12 @@ class SuggestedChannels extends StatelessWidget { return ResponsiveLayout( desktopBody: SuggestedChannelsDesktop( avatarSize: avatarSize, - crossAxisCount: crossAxisCount!, + crossAxisCount: crossAxisCount != null ? crossAxisCount! : 1, ), mobileBody: SuggestedChannelsMobile(avatarSize: avatarSize), tabletBody: SuggestedChannelsDesktop( avatarSize: avatarSize, - crossAxisCount: crossAxisCount!, + crossAxisCount: crossAxisCount != null ? crossAxisCount! : 1, ), ); } diff --git a/lib/ui/widgets/Suggestions/UserList.dart b/lib/ui/widgets/Suggestions/UserList.dart index 4fd6f8cf..8bb8ed65 100644 --- a/lib/ui/widgets/Suggestions/UserList.dart +++ b/lib/ui/widgets/Suggestions/UserList.dart @@ -31,7 +31,7 @@ class UserList extends StatelessWidget { userlist: userlist, title: title, showCount: showCount, - crossAxisCount: crossAxisCount!, + crossAxisCount: crossAxisCount != null ? crossAxisCount! : 3, avatarSize: avatarSize), mobileBody: UserListMobile( userlist: userlist, @@ -42,7 +42,7 @@ class UserList extends StatelessWidget { userlist: userlist, title: title, showCount: showCount, - crossAxisCount: crossAxisCount!, + crossAxisCount: crossAxisCount != null ? crossAxisCount! : 3, avatarSize: avatarSize), ); }