Skip to content

Commit 07b1891

Browse files
committed
replaced mpv audio backed with just_audio
Player works as previous except shuffling Youtube Search is handled through youtube_explode now
1 parent f9d3d58 commit 07b1891

15 files changed

+398
-270
lines changed

lib/components/PageWindowTitleBar.dart

-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
import 'package:bitsdojo_window/bitsdojo_window.dart';
22
import 'package:flutter/material.dart';
3-
import 'package:mpv_dart/mpv_dart.dart';
4-
import 'package:provider/provider.dart';
5-
import 'package:spotube/provider/PlayerDI.dart';
63

74
class TitleBarActionButtons extends StatelessWidget {
85
const TitleBarActionButtons({Key? key}) : super(key: key);
96

107
@override
118
Widget build(BuildContext context) {
12-
MPVPlayer player = context.watch<PlayerDI>().player;
139
return Row(
1410
children: [
1511
TextButton(
@@ -32,7 +28,6 @@ class TitleBarActionButtons extends StatelessWidget {
3228
child: const Icon(Icons.crop_square_rounded)),
3329
TextButton(
3430
onPressed: () {
35-
player.stop();
3631
appWindow.close();
3732
},
3833
style: ButtonStyle(

0 commit comments

Comments
 (0)