Skip to content

Commit

Permalink
chore: navigation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Jun 17, 2023
1 parent 1266a3f commit a0767f4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/components/album/album_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class AlbumCard extends HookConsumerWidget {
description:
"${AlbumType.from(album.albumType!).formatted} • ${TypeConversionUtils.artists_X_String<ArtistSimple>(album.artists ?? [])}",
onTap: () {
ServiceUtils.navigate(context, "/album/${album.id}", extra: album);
ServiceUtils.push(context, "/album/${album.id}", extra: album);
},
onPlaybuttonPressed: () async {
updating.value = true;
Expand Down
2 changes: 1 addition & 1 deletion lib/components/artist/artist_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class ArtistCard extends HookConsumerWidget {
),
child: InkWell(
onTap: () {
ServiceUtils.navigate(context, "/artist/${artist.id}");
ServiceUtils.push(context, "/artist/${artist.id}");
},
borderRadius: radius,
child: Padding(
Expand Down
2 changes: 1 addition & 1 deletion lib/components/player/player_overlay.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class PlayerOverlay extends HookConsumerWidget {
int sensitivity = 8;
if (details.primaryVelocity != null &&
details.primaryVelocity! < -sensitivity) {
ServiceUtils.navigate(context, "/player");
ServiceUtils.push(context, "/player");
}
},
child: ClipRRect(
Expand Down
2 changes: 1 addition & 1 deletion lib/components/playlist/playlist_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class PlaylistCard extends HookConsumerWidget {
isLoading:
(isPlaylistPlaying && playlistQueue.isFetching) || updating.value,
onTap: () {
ServiceUtils.navigate(
ServiceUtils.push(
context,
"/playlist/${playlist.id}",
extra: playlist,
Expand Down
2 changes: 1 addition & 1 deletion lib/components/shared/fallbacks/anonymous_fallback.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AnonymousFallback extends ConsumerWidget {
const SizedBox(height: 10),
FilledButton(
child: const Text("Login with Spotify"),
onPressed: () => ServiceUtils.navigate(context, "/settings"),
onPressed: () => ServiceUtils.push(context, "/settings"),
)
],
),
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/desktop_login/login_tutorial.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class LoginTutorial extends ConsumerWidget {
overrideDone: FilledButton(
onPressed: authenticationNotifier.isLoggedIn
? () {
ServiceUtils.navigate(context, "/");
ServiceUtils.push(context, "/");
}
: null,
child: Center(child: Text(context.l10n.done)),
Expand Down

0 comments on commit a0767f4

Please sign in to comment.