mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-10 17:07:30 +00:00
fix: when no friends, dummy UI still shows giving the user a false hope of friendship :'(
This commit is contained in:
parent
8c6c6a96b1
commit
fea228292a
@ -48,9 +48,8 @@ class HomePageFriendsSection extends HookConsumerWidget {
|
||||
},
|
||||
);
|
||||
|
||||
if (friendsQuery.hasData &&
|
||||
friendsQuery.data?.friends.isEmpty == true &&
|
||||
!friendsQuery.isLoading) {
|
||||
if (!friendsQuery.isLoading &&
|
||||
(!friendsQuery.hasData || friendsQuery.data!.friends.isEmpty)) {
|
||||
return const SliverToBoxAdapter(
|
||||
child: SizedBox.shrink(),
|
||||
);
|
||||
|
||||
@ -228,7 +228,9 @@ class SpotubeState extends ConsumerState<Spotube> {
|
||||
builder: (context, child) {
|
||||
return DevicePreview.appBuilder(
|
||||
context,
|
||||
DragToResizeArea(child: child!),
|
||||
DesktopTools.platform.isDesktop
|
||||
? DragToResizeArea(child: child!)
|
||||
: child,
|
||||
);
|
||||
},
|
||||
themeMode: themeMode,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user