Next button on right bottom

This commit is contained in:
Hasinjato 2026-10-05 10:46:57 +03:00
parent 47350c6286
commit a20fe346ee

View file

@ -251,14 +251,6 @@ object ScreenSolfa : Screen {
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) {
altFiles.forEachIndexed { index, item ->
val isSelected = item.path == activeFilePath
@ -318,8 +310,23 @@ object ScreenSolfa : Screen {
}
Row (
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)
}
}
}
}
}