Skip to content

Commit

Permalink
Add JourneyCardState
Browse files Browse the repository at this point in the history
  • Loading branch information
ksharma-xyz committed Oct 21, 2024
1 parent fc1f108 commit 3295ca9
Showing 1 changed file with 19 additions and 1 deletion.
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
}

0 comments on commit 3295ca9

Please sign in to comment.