Next button on right bottom
This commit is contained in:
parent
47350c6286
commit
a20fe346ee
1 changed files with 16 additions and 9 deletions
|
|
@ -251,14 +251,6 @@ object ScreenSolfa : Screen {
|
||||||
tint = if (isEditMode) ColorPrefixB else Color.Gray
|
tint = if (isEditMode) ColorPrefixB else Color.Gray
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
MGButton(onClick = {
|
|
||||||
//showContent = !showContent
|
|
||||||
|
|
||||||
solfaScreenModel.loadNextInPlaylist()
|
|
||||||
}, modifier = Modifier.height(40.dp)) {
|
|
||||||
val nextLabel: String by sharedScreenModel.nextLabel.collectAsState()
|
|
||||||
Text(nextLabel)
|
|
||||||
}
|
|
||||||
if (altFiles.size > 1) {
|
if (altFiles.size > 1) {
|
||||||
altFiles.forEachIndexed { index, item ->
|
altFiles.forEachIndexed { index, item ->
|
||||||
val isSelected = item.path == activeFilePath
|
val isSelected = item.path == activeFilePath
|
||||||
|
|
@ -318,8 +310,23 @@ object ScreenSolfa : Screen {
|
||||||
}
|
}
|
||||||
Row (
|
Row (
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.height(75.dp)
|
.fillMaxWidth()
|
||||||
|
.padding(top = 16.dp, bottom = 32.dp, end = 65.dp),
|
||||||
|
horizontalArrangement = Arrangement.End,
|
||||||
|
verticalAlignment = Alignment.CenterVertically
|
||||||
) {
|
) {
|
||||||
|
val nextLabel: String by sharedScreenModel.nextLabel.collectAsState()
|
||||||
|
|
||||||
|
if (nextLabel.isNotBlank()) {
|
||||||
|
MGButton(
|
||||||
|
onClick = {
|
||||||
|
solfaScreenModel.loadNextInPlaylist()
|
||||||
|
},
|
||||||
|
modifier = Modifier.height(40.dp)
|
||||||
|
) {
|
||||||
|
Text(nextLabel)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue