OCExaminationCard: UI component
The OCExaminationCard
card is used in the Vorsorgemanager to show the state of the checkup.
There are two size variants:
large: to be used within the plugin
small: to be shown outside the plugin
Features
- User can pass the desired details to show like title, description.
- In style, user can change card state like CheckPending, DueLater, DueSoon, Done and OverDue status.
Card State:
- CheckPending
- DueLater
- DueSoon
- Done
- OverDue
How to use OCExaminationCard
-
Add the necessary imports:
import your.package.name.OCExaminationCard
-
Use the
OCExaminationCard
within your Composable:
//calling the composable with all the required inputs
@Composable
fun OCExaminationCardCheckPendingSmallPreview() {
OCTheme {
OCExaminationCard(
title = "Title",
description = "description text goes here description",
cardState = CheckPending,
cardType = OCExaminationCardSmall
) {
}
}
}
Parameters:
title
: title of examination card.description
: description of examination card.pillTitle
: text for pill.cardState
: state of examination cardcardType
: type of examination card either small or largeonClick
: callback function that is triggered when examination card is clicked