forked from agzam/vyatsu-schedule
43 lines
1.5 KiB
Kotlin
43 lines
1.5 KiB
Kotlin
package agzam.vyatsu.ui.info
|
||||
|
|
|
|||
|
|
import agzam.vyatsu.data.static.CALLS
|
|||
|
|
import androidx.compose.foundation.layout.Row
|
|||
|
|
import androidx.compose.foundation.layout.WindowInsets
|
|||
|
|
import androidx.compose.foundation.layout.fillMaxWidth
|
|||
|
|
import androidx.compose.foundation.layout.padding
|
|||
|
|
import androidx.compose.foundation.layout.statusBars
|
|||
|
|
import androidx.compose.foundation.layout.windowInsetsPadding
|
|||
|
|
import androidx.compose.foundation.lazy.LazyColumn
|
|||
|
|
import androidx.compose.foundation.lazy.itemsIndexed
|
|||
|
|
import androidx.compose.material3.HorizontalDivider
|
|||
|
|
import androidx.compose.material3.MaterialTheme
|
|||
|
|
import androidx.compose.material3.Text
|
|||
|
|
import androidx.compose.runtime.Composable
|
|||
|
|
import androidx.compose.ui.Modifier
|
|||
|
|
import androidx.compose.ui.unit.dp
|
|||
|
|
|
|||
|
|
@Composable
|
|||
|
|
fun CallsScreen() {
|
|||
|
|
LazyColumn(
|
|||
|
|
Modifier
|
|||
|
|
.fillMaxWidth()
|
|||
|
|
.windowInsetsPadding(WindowInsets.statusBars)
|
|||
|
|
) {
|
|||
|
|
itemsIndexed(CALLS) { index, call ->
|
|||
|
|
Row(Modifier.fillMaxWidth().padding(horizontal = 16.dp, vertical = 12.dp)) {
|
|||
|
|
Text(
|
|||
|
|
"${index + 1} пара",
|
|||
|
|
style = MaterialTheme.typography.bodyLarge,
|
|||
|
|
modifier = Modifier.weight(1f)
|
|||
|
|
)
|
|||
|
|
Text(
|
|||
|
|
"${call.start} – ${call.end}",
|
|||
|
|
style = MaterialTheme.typography.bodyLarge,
|
|||
|
|
color = MaterialTheme.colorScheme.onSurfaceVariant
|
|||
|
|
)
|
|||
|
|
}
|
|||
|
|
HorizontalDivider(Modifier.padding(horizontal = 16.dp))
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|