Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JourneyCardState #228

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import kotlinx.collections.immutable.ImmutableList
import kotlinx.collections.immutable.toImmutableList
import xyz.ksharma.krail.design.system.components.BasicJourneyCard
import xyz.ksharma.krail.design.system.components.Text
import xyz.ksharma.krail.design.system.theme.KrailTheme
import xyz.ksharma.krail.trip_planner.ui.R
Expand Down Expand Up @@ -415,3 +414,22 @@ fun JourneyDetailCard(
}
}
}*/

enum class JourneyCardState {
/**
* Default state of the card. as displayed in the list.
*/
DEFAULT,

/**
* Card displaying information about different legs of the journey.
* The number of stops and duration of each leg.
*/
COLLAPSED,

/**
* Card displaying the full journey details of a certain leg.
* It will display all the stops in the leg, with platform and timing information.
*/
EXPANDED
}