Package com.example.examer.ui.components.examerTestCard

Types

Link copied to clipboard
data class ExamerTestCardColors(val takeTestButtonColor: Color, val statusColors: StatusColors)

A data class that used to hold the takeTestButtonColor and statusColors related to ExamerExpandableTestCard.

Link copied to clipboard
data class StatusColors(    val open: Color,     val scheduled: Color,     val missed: Color,     val completed: Color)

A data class that is used to hold all colors related to the test status of an instance of com.example.examer.data.domain.TestDetails class.

Functions

Link copied to clipboard
@Composable
fun DefaultExamerExpandableTestCard(    test: TestDetails,     isExpanded: Boolean,     onExpandButtonClick: () -> Unit,     onTakeTestButtonClick: () -> Unit,     modifier: Modifier = Modifier,     onClick: () -> Unit = {},     is24HourTimeFormat: Boolean = false)

This is a default implementation of ExamerExpandableTestCard which displays the ExamerCardExpandedContent when the card is expanded. ExamerExpandableTestCard provides slot for defining the content to be displayed when the card is expanded.

Link copied to clipboard
@Composable
fun ExamerCardMetadataRow(    dateString: String,     timeString: String,     testDurationInMinutes: String)
Link copied to clipboard
@Composable
fun ExamerExpandableTestCard(    test: TestDetails,     isExpanded: Boolean,     onExpandButtonClick: () -> Unit,     modifier: Modifier = Modifier,     onClick: () -> Unit = {},     is24HourTimeFormat: Boolean = false,     expandedContent: @Composable () -> Unit)
Link copied to clipboard
@Composable
fun StatusRow(    testStatus: Status,     modifier: Modifier = Modifier,     isDarkModeEnabled: Boolean = !MaterialTheme.colors.isLight)