Skip to content

Commit

Permalink
chore: update app summary
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Mar 12, 2023
1 parent eeb8cab commit dcdb166
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 66 deletions.
2 changes: 1 addition & 1 deletion aur-struct/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pkgbase = spotube-bin
pkgdesc = A lightweight free Spotify crossplatform-client which handles playback manually, streams music using Youtube & no Spotify premium account is needed
pkgdesc = Open source Spotify client that doesn't require Premium nor uses Electron! Available for both desktop & mobile!
pkgver = 2.3.0
pkgrel = 1
url = https://github.com/KRTirtho/spotube/
Expand Down
2 changes: 1 addition & 1 deletion aur-struct/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pkgname=spotube-bin
pkgver=%{{SPOTUBE_VERSION}}%
pkgrel=%{{PKGREL}}%
epoch=
pkgdesc="A lightweight free Spotify crossplatform-client which handles playback manually, streams music using Youtube & no Spotify premium account is needed"
pkgdesc="Open source Spotify client that doesn't require Premium nor uses Electron! Available for both desktop & mobile!"
arch=(x86_64)
url="https://github.com/KRTirtho/spotube/"
license=('BSD-4-Clause')
Expand Down
2 changes: 1 addition & 1 deletion choco-struct/spotube.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<docsUrl>https://github.com/KRTirtho/spotube#readme</docsUrl>
<bugTrackerUrl>https://github.com/KRTirtho/spotube/issues/new</bugTrackerUrl>
<tags>spotube music audio spotify youtube flutter</tags>
<summary>A lightweight free Spotify 🎧 crossplatform-client 🖥📱 which handles playback manually, streams music using Youtube &amp; no Spotify premium account is needed 😱</summary>
<summary>Open source Spotify client that doesn't require Premium nor uses Electron! Available for both desktop &amp; mobile!</summary>
<description>
Spotube is a Flutter based lightweight spotify client. It utilizes the power
of Spotify &amp; Youtube's public API &amp; creates a hazardless, performant &amp; resource
Expand Down
2 changes: 1 addition & 1 deletion lib/components/genre/category_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class CategoryCard extends HookConsumerWidget {
children: [
Text(
category.name!,
style: Theme.of(context).textTheme.titleLarge,
style: Theme.of(context).textTheme.titleMedium,
),
ScrollConfiguration(
behavior: ScrollConfiguration.of(context).copyWith(
Expand Down
54 changes: 22 additions & 32 deletions lib/components/library/user_playlists.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import 'package:hooks_riverpod/hooks_riverpod.dart';

import 'package:spotify/spotify.dart';
import 'package:spotube/collections/spotube_icons.dart';
import 'package:spotube/components/playlist/playlist_create_dialog.dart';
import 'package:spotube/components/shared/shimmers/shimmer_playbutton_card.dart';
import 'package:spotube/components/shared/fallbacks/anonymous_fallback.dart';
import 'package:spotube/components/playlist/playlist_card.dart';
Expand Down Expand Up @@ -34,6 +33,7 @@ class UserPlaylists extends HookConsumerWidget {
final likedTracksPlaylist = useMemoized(
() => PlaylistSimple()
..name = "Liked Tracks"
..description = "All your liked tracks"
..type = "playlist"
..collaborative = false
..public = false
Expand Down Expand Up @@ -75,42 +75,32 @@ class UserPlaylists extends HookConsumerWidget {
return const AnonymousFallback();
}

final children = [
const PlaylistCreateDialog(),
...playlists.map((playlist) => PlaylistCard(playlist)).toList(),
];
return RefreshIndicator(
onRefresh: playlistsQuery.refresh,
child: SingleChildScrollView(
physics: const AlwaysScrollableScrollPhysics(),
child: Padding(
padding: const EdgeInsets.all(8.0),
child: SafeArea(
child: Column(
children: [
TextField(
onChanged: (value) => searchText.value = value,
decoration: const InputDecoration(
hintText: "Filter your playlists...",
prefixIcon: Icon(SpotubeIcons.filter),
),
padding: const EdgeInsets.all(8.0),
child: SafeArea(
child: Column(
children: [
TextField(
onChanged: (value) => searchText.value = value,
decoration: const InputDecoration(
hintText: "Filter your playlists...",
prefixIcon: Icon(SpotubeIcons.filter),
),
const SizedBox(height: 20),
if (playlistsQuery.isLoading || !playlistsQuery.hasData)
const Center(child: ShimmerPlaybuttonCard(count: 7))
else
Center(
child: Wrap(
spacing: spacing, // gap between adjacent chips
runSpacing: 20, // gap between lines
alignment: breakpoint.isSm
? WrapAlignment.center
: WrapAlignment.start,
children: children,
),
),
],
),
),
const SizedBox(height: 20),
if (playlistsQuery.isLoading || !playlistsQuery.hasData)
const Center(child: ShimmerPlaybuttonCard(count: 7))
else
Wrap(
runSpacing: 10,
children: playlists
.map((playlist) => PlaylistCard(playlist))
.toList(),
),
],
),
),
),
Expand Down
6 changes: 1 addition & 5 deletions lib/components/playlist/playlist_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:spotify/spotify.dart';
import 'package:spotube/components/shared/playbutton_card.dart';
import 'package:spotube/hooks/use_breakpoint_value.dart';
import 'package:spotube/provider/playlist_queue_provider.dart';
import 'package:spotube/provider/spotify_provider.dart';
import 'package:spotube/services/queries/queries.dart';
Expand Down Expand Up @@ -34,14 +33,11 @@ class PlaylistCard extends HookConsumerWidget {
[playlistNotifier, tracks.value, query?.data],
);

final int marginH =
useBreakpointValue(sm: 10, md: 15, lg: 20, xl: 20, xxl: 20);

final updating = useState(false);
final spotify = ref.watch(spotifyProvider);

return PlaybuttonCard(
margin: EdgeInsets.symmetric(horizontal: marginH.toDouble()),
margin: const EdgeInsets.symmetric(horizontal: 10),
title: playlist.name!,
description: playlist.description,
imageUrl: TypeConversionUtils.image_X_UrlString(
Expand Down
24 changes: 8 additions & 16 deletions lib/components/root/spotube_navigation_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class SpotubeNavigationBar extends HookConsumerWidget {

@override
Widget build(BuildContext context, ref) {
final theme = Theme.of(context);
final downloadCount = ref.watch(
downloaderProvider.select((s) => s.currentlyRunning),
);
Expand All @@ -34,8 +35,8 @@ class SpotubeNavigationBar extends HookConsumerWidget {
final insideSelectedIndex = useState<int>(selectedIndex);

final buttonColor = useBrightnessValue(
Theme.of(context).colorScheme.inversePrimary,
Theme.of(context).colorScheme.primary.withOpacity(0.2),
theme.colorScheme.inversePrimary,
theme.colorScheme.primary.withOpacity(0.2),
);

useEffect(() {
Expand All @@ -51,31 +52,22 @@ class SpotubeNavigationBar extends HookConsumerWidget {
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 15, sigmaY: 15),
child: CurvedNavigationBar(
backgroundColor: Theme.of(context)
.colorScheme
.secondaryContainer
.withOpacity(0.72),
backgroundColor:
theme.colorScheme.secondaryContainer.withOpacity(0.72),
buttonBackgroundColor: buttonColor,
color: Theme.of(context).colorScheme.background,
color: theme.colorScheme.background,
height: 50,
items: [
...navbarTileList.map(
(e) {
return MouseRegion(
cursor: SystemMouseCursors.click,
child: Badge(
backgroundColor: Theme.of(context).primaryColor,
isLabelVisible: e.title == "Library" && downloadCount > 0,
label: Text(
downloadCount.toString(),
style: const TextStyle(
color: Colors.white,
fontSize: 10,
),
),
label: Text(downloadCount.toString()),
child: Icon(
e.icon,
color: Theme.of(context).colorScheme.primary,
color: theme.colorScheme.primary,
),
),
);
Expand Down
2 changes: 1 addition & 1 deletion lib/components/shared/playbutton_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class PlaybuttonCard extends HookWidget {
Positioned.directional(
textDirection: TextDirection.ltr,
end: end,
bottom: -5,
bottom: -size * .15,
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Expand Down
7 changes: 5 additions & 2 deletions lib/services/queries/category.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ class CategoryQueries {
"category-playlists",
(pageParam, spotify) async {
final categories = await spotify.categories
.list(country: recommendationMarket)
.list(
country: recommendationMarket,
locale: 'en_US',
)
.getPage(15, pageParam);

return categories;
Expand Down Expand Up @@ -44,7 +47,7 @@ class CategoryQueries {
(pageParam, spotify) async {
final playlists = await Pages<PlaylistSimple?>(
spotify,
"v1/browse/categories/$category/playlists",
"v1/browse/categories/$category/playlists?country=US&locale=en_US",
(json) => json == null ? null : PlaylistSimple.fromJson(json),
'playlists',
(json) => PlaylistsFeatured.fromJson(json),
Expand Down
3 changes: 1 addition & 2 deletions linux/com.github.KRTirtho.Spotube.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
<id>com.github.KRTirtho.Spotube</id>
<name>Spotube</name>
<summary>
A lightweight free Spotify crossplatform-client which handles playback manually, streams music
using Youtube &amp; no Spotify premium account is needed
Open source Spotify client that doesn't require Premium nor uses Electron! Available for both desktop &amp; mobile!
</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>BSD-4-Clause</project_license>
Expand Down
2 changes: 1 addition & 1 deletion metadata/en-US/full_description.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
A lightweight free Spotify crossplatform-client (desktop: Mac, Linux, Windows, mobile: Android) which handles playback manually, streams music using Youtube & no Spotify premium account is needed
Open source Spotify client that doesn't require Premium nor uses Electron! Available for both desktop & mobile!


Features:
Expand Down
4 changes: 1 addition & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: spotube
description: A lightweight free Spotify crossplatform-client which handles
playback manually, streams music using Youtube & no Spotify premium account is
needed
description: Open source Spotify client that doesn't require Premium nor uses Electron! Available for both desktop & mobile!

publish_to: "none"

Expand Down

0 comments on commit dcdb166

Please sign in to comment.