mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
chore: navigation fix
This commit is contained in:
parent
1266a3f160
commit
a0767f4664
@ -70,7 +70,7 @@ class AlbumCard extends HookConsumerWidget {
|
|||||||
description:
|
description:
|
||||||
"${AlbumType.from(album.albumType!).formatted} • ${TypeConversionUtils.artists_X_String<ArtistSimple>(album.artists ?? [])}",
|
"${AlbumType.from(album.albumType!).formatted} • ${TypeConversionUtils.artists_X_String<ArtistSimple>(album.artists ?? [])}",
|
||||||
onTap: () {
|
onTap: () {
|
||||||
ServiceUtils.navigate(context, "/album/${album.id}", extra: album);
|
ServiceUtils.push(context, "/album/${album.id}", extra: album);
|
||||||
},
|
},
|
||||||
onPlaybuttonPressed: () async {
|
onPlaybuttonPressed: () async {
|
||||||
updating.value = true;
|
updating.value = true;
|
||||||
|
@ -62,7 +62,7 @@ class ArtistCard extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
ServiceUtils.navigate(context, "/artist/${artist.id}");
|
ServiceUtils.push(context, "/artist/${artist.id}");
|
||||||
},
|
},
|
||||||
borderRadius: radius,
|
borderRadius: radius,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
@ -44,7 +44,7 @@ class PlayerOverlay extends HookConsumerWidget {
|
|||||||
int sensitivity = 8;
|
int sensitivity = 8;
|
||||||
if (details.primaryVelocity != null &&
|
if (details.primaryVelocity != null &&
|
||||||
details.primaryVelocity! < -sensitivity) {
|
details.primaryVelocity! < -sensitivity) {
|
||||||
ServiceUtils.navigate(context, "/player");
|
ServiceUtils.push(context, "/player");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: ClipRRect(
|
child: ClipRRect(
|
||||||
|
@ -48,7 +48,7 @@ class PlaylistCard extends HookConsumerWidget {
|
|||||||
isLoading:
|
isLoading:
|
||||||
(isPlaylistPlaying && playlistQueue.isFetching) || updating.value,
|
(isPlaylistPlaying && playlistQueue.isFetching) || updating.value,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
ServiceUtils.navigate(
|
ServiceUtils.push(
|
||||||
context,
|
context,
|
||||||
"/playlist/${playlist.id}",
|
"/playlist/${playlist.id}",
|
||||||
extra: playlist,
|
extra: playlist,
|
||||||
|
@ -24,7 +24,7 @@ class AnonymousFallback extends ConsumerWidget {
|
|||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
FilledButton(
|
FilledButton(
|
||||||
child: const Text("Login with Spotify"),
|
child: const Text("Login with Spotify"),
|
||||||
onPressed: () => ServiceUtils.navigate(context, "/settings"),
|
onPressed: () => ServiceUtils.push(context, "/settings"),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -54,7 +54,7 @@ class LoginTutorial extends ConsumerWidget {
|
|||||||
overrideDone: FilledButton(
|
overrideDone: FilledButton(
|
||||||
onPressed: authenticationNotifier.isLoggedIn
|
onPressed: authenticationNotifier.isLoggedIn
|
||||||
? () {
|
? () {
|
||||||
ServiceUtils.navigate(context, "/");
|
ServiceUtils.push(context, "/");
|
||||||
}
|
}
|
||||||
: null,
|
: null,
|
||||||
child: Center(child: Text(context.l10n.done)),
|
child: Center(child: Text(context.l10n.done)),
|
||||||
|
Loading…
Reference in New Issue
Block a user