mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-11 17:37:31 +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 &&
|
if (!friendsQuery.isLoading &&
|
||||||
friendsQuery.data?.friends.isEmpty == true &&
|
(!friendsQuery.hasData || friendsQuery.data!.friends.isEmpty)) {
|
||||||
!friendsQuery.isLoading) {
|
|
||||||
return const SliverToBoxAdapter(
|
return const SliverToBoxAdapter(
|
||||||
child: SizedBox.shrink(),
|
child: SizedBox.shrink(),
|
||||||
);
|
);
|
||||||
|
|||||||
@ -228,7 +228,9 @@ class SpotubeState extends ConsumerState<Spotube> {
|
|||||||
builder: (context, child) {
|
builder: (context, child) {
|
||||||
return DevicePreview.appBuilder(
|
return DevicePreview.appBuilder(
|
||||||
context,
|
context,
|
||||||
DragToResizeArea(child: child!),
|
DesktopTools.platform.isDesktop
|
||||||
|
? DragToResizeArea(child: child!)
|
||||||
|
: child,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
themeMode: themeMode,
|
themeMode: themeMode,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user