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 {
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;
try {

View File

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