-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: display online art errors in the player images, improved radio …
…search (#943)
- Loading branch information
1 parent
cdce7cf
commit 42d61ee
Showing
86 changed files
with
640 additions
and
453 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import 'icons.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:yaru/yaru.dart'; | ||
import 'theme.dart'; | ||
|
||
class AnimatedStar extends StatelessWidget { | ||
const AnimatedStar({ | ||
super.key, | ||
required this.isStarred, | ||
this.color, | ||
}); | ||
|
||
final bool isStarred; | ||
final Color? color; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
if (yaruStyled) { | ||
return YaruAnimatedVectorIcon( | ||
isStarred ? YaruAnimatedIcons.star_filled : YaruAnimatedIcons.star, | ||
initialProgress: 1.0, | ||
color: color, | ||
size: iconSize, | ||
); | ||
} else { | ||
return isStarred | ||
? Icon( | ||
Iconz.starFilled, | ||
size: iconSize, | ||
color: isStarred ? color : null, | ||
) | ||
: Icon( | ||
Iconz.star, | ||
size: iconSize, | ||
color: isStarred ? color : null, | ||
); | ||
} | ||
} | ||
} | ||
|
||
class AnimatedHeart extends StatelessWidget { | ||
const AnimatedHeart({ | ||
super.key, | ||
required this.liked, | ||
this.color, | ||
}); | ||
|
||
final bool liked; | ||
final Color? color; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
if (yaruStyled) { | ||
return YaruAnimatedVectorIcon( | ||
liked ? YaruAnimatedIcons.heart_filled : YaruAnimatedIcons.heart, | ||
initialProgress: 1.0, | ||
color: color, | ||
size: iconSize, | ||
); | ||
} else { | ||
return Icon( | ||
liked ? Icons.favorite : Icons.favorite_outline, | ||
color: color, | ||
); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.