mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00

PlaylistCard image placeholder Player album placeholder PlayerDI provider for global avilability of MPVPlayer
16 lines
281 B
Dart
16 lines
281 B
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:mpv_dart/mpv_dart.dart';
|
|
|
|
class PlayerDI extends ChangeNotifier {
|
|
MPVPlayer _player;
|
|
|
|
PlayerDI(this._player);
|
|
|
|
get player => _player;
|
|
|
|
setPlayer(MPVPlayer player) {
|
|
_player = player;
|
|
notifyListeners();
|
|
}
|
|
}
|