Package-level declarations

Types

Link copied to clipboard
data class DateItem(val id: Long, val dayOfWeek: String, val dayOfMonth: Int)
Link copied to clipboard
interface MatchApiState

Sealed interface representing the state of match-related API calls.

Link copied to clipboard
class MatchesViewModel(matchesRepository: MatchesRepository) : ViewModel

ViewModel for the Matches screen.

Link copied to clipboard
data class MatchListState(val matchList: List<Match> = listOf())

Represents the state for the list of matches.

Link copied to clipboard
data class MatchOverviewState(val isAddingVisible: Boolean = false, val scrollActionIdx: Int = 0, val scrollToItemIndex: Int = 0)

Represents the state for the Match Overview screen.

Link copied to clipboard
data class WorkerState(val workerInfo: WorkInfo? = null)

Represents the state for a worker (background task) related to matches.

Functions

Link copied to clipboard
fun DatePickerRow(dateItems: List<DateItem>, selectedDate: LocalDate?, onDateSelected: (DateItem) -> Unit, lazyListState: LazyListState)

Composable function for displaying a row of date items.

Link copied to clipboard

Generates a list of DateItem objects representing days of a month.

Link copied to clipboard
fun MatchesScreen(modifier: Modifier = Modifier, matchesViewModel: MatchesViewModel = viewModel(factory = MatchesViewModel.Factory), isAddingVisisble: Boolean = false, makeInvisible: () -> Unit = {})

Composable function to display a screen with matches.

Link copied to clipboard
fun TeamListComponent(modifier: Modifier = Modifier, matchOverviewState: MatchOverviewState, matchListState: MatchListState)