-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #533 from GautamCoder4019k/null_song_is_coming_in_…
…recent_played Bugfix: null song is coming when we click on recently played
- Loading branch information
Showing
3 changed files
with
94 additions
and
113 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
app/src/main/java/org/listenbrainz/android/ui/components/BrainzPlayerSeeAllCard.kt
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,46 @@ | ||
package org.listenbrainz.android.ui.components | ||
|
||
import androidx.compose.foundation.background | ||
import androidx.compose.foundation.clickable | ||
import androidx.compose.foundation.layout.Arrangement | ||
import androidx.compose.foundation.layout.Box | ||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.fillMaxSize | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.foundation.layout.size | ||
import androidx.compose.foundation.shape.RoundedCornerShape | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.draw.clip | ||
import androidx.compose.ui.text.TextStyle | ||
import androidx.compose.ui.unit.dp | ||
import androidx.compose.ui.unit.sp | ||
import org.listenbrainz.android.ui.theme.ListenBrainzTheme | ||
|
||
@Composable | ||
fun BrainzPlayerSeeAllCard(modifier: Modifier = Modifier,onCardClicked:()->Unit,cardText:String) { | ||
Box( | ||
modifier = modifier | ||
.padding(10.dp) | ||
.clip(RoundedCornerShape(15.dp)) | ||
.size(150.dp) | ||
.clickable { | ||
onCardClicked() | ||
} | ||
) { | ||
Column( | ||
modifier = Modifier | ||
.fillMaxSize() | ||
.background(ListenBrainzTheme.colorScheme.placeHolderColor) | ||
.padding(start = 5.dp, bottom = 20.dp), | ||
verticalArrangement = Arrangement.Bottom | ||
) { | ||
Text( | ||
cardText, | ||
style = TextStyle(fontSize = 20.sp), | ||
color = ListenBrainzTheme.colorScheme.lbSignature | ||
) | ||
} | ||
} | ||
} |
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