Fix mess commit reverting

This commit is contained in:
poka 2022-05-02 12:44:20 +02:00
commit 76fcb6b6eb
2 changed files with 14 additions and 4 deletions

View File

@ -92,6 +92,13 @@ class HomeProvider with ChangeNotifier {
} else { } else {
player = Player.asset(track.file!.path); player = Player.asset(track.file!.path);
} }
const invidiousUrl =
'yewtu.be'; //yewtu.be vid.puffyan.us invidious.snopyta.org invidious.fdn.fr
player = Player.network(
"https://$invidiousUrl/embed/${track.id}?raw=1&listen=1");
print(track.id);
player!.volume = currentVolume; player!.volume = currentVolume;
try { try {

View File

@ -162,7 +162,7 @@ class _HomeScreenState extends State<HomeScreen> {
controller: controller, controller: controller,
backgroundColor: Colors.grey[900]!, backgroundColor: Colors.grey[900]!,
minHeight: 70, minHeight: 70,
maxHeight: 370, maxHeight: 70,
builder: (height, percentage) { builder: (height, percentage) {
return Row( return Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween, // mainAxisAlignment: MainAxisAlignment.spaceBetween,
@ -409,9 +409,12 @@ TableRow _buildTableRow(Track track, BuildContext context) {
return Text(track.title, return Text(track.title,
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
color: hp.currentTrack?.title == track.title && hp.currentTrack?.artiste == track.artiste color:
? Colors.green hp.currentTrack?.title == track.title &&
: Colors.grey[350], hp.currentTrack?.artiste ==
track.artiste
? Colors.green
: Colors.grey[350],
fontSize: 14)); fontSize: 14));
}), }),
const SizedBox(height: 2), const SizedBox(height: 2),