grtsinry43 93f95bf9c3
feat: Implement image detail view and text/image mode switching
This commit introduces a dedicated image detail screen and integrates it with the post detail view, allowing users to switch between a text-focused layout and an immersive, image-centric one.

**Key Changes:**

*   **feat(ImageDetailScreen):**
    *   Added a new `ImageDetailScreen` for a full-screen, immersive image viewing experience.
    *   Implemented a `HorizontalPager` to allow swiping between multiple images.
    *   Included zoom (pinch-to-zoom) and double-tap-to-zoom functionality for images.
    *   Overlaid post information (author, content snippet) on a blurred background, which can be swiped up to switch back to the text detail view.
    *   The background is a blurred version of the current image, creating an ambient effect.

*   **feat(Navigation):**
    *   Created a `PostDetailContainer` to manage the animated transition between `PostDetailScreen` (text mode) and `ImageDetailScreen` (image mode).
    *   Updated the navigation route for `PostDetail` to accept a `mode` parameter (`text` or `image`) to handle deep linking directly into the image view.
    *   Clicking an image in the feed or post details now navigates to the image mode, preserving the shared element transition.

*   **refactor(PostDetail):**
    *   Modified `PostCardItem` and `PostDetailScreen` to pass both `postId` and the image `index` on image clicks.
    *   Refactored the image click handler to trigger the navigation to the new image detail mode.
2025-10-06 01:29:15 +08:00
2025-10-05 01:20:02 +08:00
2025-10-05 01:20:02 +08:00
2025-10-05 01:20:02 +08:00
2025-10-05 01:20:02 +08:00
2025-10-05 01:20:02 +08:00
Description
No description provided
26 MiB
Languages
Kotlin 100%