Skip to content

Commit

Permalink
bug fix - option on player
Browse files Browse the repository at this point in the history
  • Loading branch information
HemantKArya committed Feb 3, 2024
1 parent 2968fa3 commit eea0288
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions lib/routes_and_consts/routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ class GlobalRoutes {
),
GoRoute(
name: GlobalStrConsts.playlistView,
parentNavigatorKey: globalRouterKey,
path: '/PlaylistView/:playlistName',
builder: (context, state) => PlaylistView(
playListName: state.pathParameters['playlistName'] ?? "none"),
),
GoRoute(
path: '/AddToPlaylist',
parentNavigatorKey: globalRouterKey,
name: GlobalStrConsts.addToPlaylistScreen,
builder: (context, state) => AddToPlaylistScreen(),
),
Expand Down
10 changes: 6 additions & 4 deletions lib/screens/screen/audioPlayer_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:audio_video_progress_bar/audio_video_progress_bar.dart';
import 'package:fluentui_system_icons/fluentui_system_icons.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:go_router/go_router.dart';
import 'package:just_audio/just_audio.dart';
import 'package:Bloomee/screens/widgets/like_widget.dart';
import 'package:Bloomee/screens/widgets/playPause_widget.dart';
Expand All @@ -13,6 +14,7 @@ import 'package:Bloomee/utils/load_Image.dart';
import 'package:Bloomee/utils/pallete_generator.dart';

import '../../blocs/mediaPlayer/bloomee_player_cubit.dart';
import '../../routes_and_consts/global_str_consts.dart';
import '../widgets/mediaItemOptions_bottomsheet.dart';
import '../widgets/unicode_icons.dart';

Expand Down Expand Up @@ -68,10 +70,10 @@ class _AudioPlayerViewState extends State<AudioPlayerView> {
.currentQueueName,
builder: (context, snapshot) {
return InkWell(
// onTap: () => context.pushNamed(GlobalStrConsts.playlistView,
// pathParameters: {
// "playlistName": snapshot.data ?? "Liked"
// }),
onTap: () => context.pushNamed(GlobalStrConsts.playlistView,
pathParameters: {
"playlistName": snapshot.data ?? "Liked"
}),
child: Text(
snapshot.data ?? "Unknown",
textAlign: TextAlign.center,
Expand Down

0 comments on commit eea0288

Please sign in to comment.