Skip to content

Commit

Permalink
fix npe
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier committed Mar 11, 2024
1 parent 0755cdb commit 018df39
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/src/common/audio_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class _AudioCardState extends State<AudioCard> {
child: Stack(
children: [
if (widget.background != null) widget.background!,
if (widget.image == null && widget.background != null)
if (widget.image == null)
Shimmer.fromColors(
baseColor: light ? kCardColorLight : kCardColorDark,
highlightColor: light
Expand All @@ -68,9 +68,8 @@ class _AudioCardState extends State<AudioCard> {
child: Container(
color: light ? kCardColorLight : kCardColorDark,
),
)
else
widget.image!,
),
if (widget.image != null) widget.image!,
if (_hovered && widget.onPlay != null)
Positioned(
bottom: 10,
Expand Down

0 comments on commit 018df39

Please sign in to comment.