feat: Add WideNavigationRail component and navigation
This commit introduces a new `WideNavigationRail` component and integrates it into the application's navigation.
- **`WideNavigationRail.kt`**:
- Defines a new Composable function `WideNavigationRail` that showcases the `androidx.compose.material3.WideNavigationRail`.
- Includes a header with an IconButton to expand/collapse the rail.
- Displays a list of `WideNavigationRailItem`s with icons and labels.
- Shows the current state (Expanded/Collapsed) and animation status of the rail.
- Locks the screen orientation to portrait for this demo, as landscape mode might cause issues on smaller screens.
- **`WideNavigationRailNavGraph.kt`**:
- Adds a new navigation graph entry for the `WideNavigationRail` component, making it accessible via `WideNavigationRailRoutes.ToolbarRoute`.
- **`AppRoutes.kt`**:
- Defines a new sealed interface `WideNavigationRailRoutes` and a `ToolbarRoute` within it for navigating to the `WideNavigationRail` screen.
- **`HomeScreen.kt`**:
- Adds a new `HomeItemData` entry for "Wide Navigation Rail" with an appropriate icon.
- Includes a new lambda parameter `onNavigateToWideNavigationRailRoute` to handle navigation to the new component.
- **`AppNavigation.kt`**:
- Updates the main navigation graph to include the `wideNavigationRailNavGraph`.
- Passes the `onNavigateToWideNavigationRailRoute` lambda to `HomeScreen` to enable navigation to the `WideNavigationRail` screen. C
Cavin committed
4342e23a4515918f03323d24a9af0a730561279d
Parent: d4ecc89