Skip to content

Feature/movie actor background card#108

Merged
karrar-abbas merged 7 commits into
developfrom
feature/movie-actor-background-card
Jul 18, 2025
Merged

Feature/movie actor background card#108
karrar-abbas merged 7 commits into
developfrom
feature/movie-actor-background-card

Conversation

@baraa0abd

Copy link
Copy Markdown
Collaborator
image

This commit introduces several new composable functions for displaying movie and actor-related backgrounds and overlays:

- `ActorOverlay`: Displays a circular actor image with an optional border.
- `BlurredBackgroundImage`: Shows a blurred background image, supporting Android S+ blur effects.
- `MoviePosterDetailScreen`: A screen composable that combines a blurred background, an overlay, and a central movie poster.
- `PosterCard`: Displays a movie poster with rounded corners and a shadow.
The `ActorOverlay` composable function has been removed. This function was previously used to display an actor's image with a circular border and shadow.
This commit updates the `MoviePosterDetailScreen` composable to support displaying actor images in addition to movie posters.

Key changes:
- Renamed `posterImageUrl` to `ImageUrl` for broader applicability.
- Added an `isActor` boolean parameter to differentiate between movie posters and actor images.
- Implemented conditional rendering:
    - If `isActor` is true, an `ActorOverlay` with a circular shape is displayed.
    - Otherwise, the existing `PosterCard` with rounded corners is displayed.
- Updated the preview to reflect the parameter name change.
This commit introduces a new composable function `ActorOverlay`.

This composable displays an actor's image within a circular frame. It includes a shadow effect and a colored border. The image is loaded asynchronously using Coil.
…ading

This commit replaces the `AsyncImage` composable from the Coil library with a custom `FilteredImage` composable in several parts of the application. This change aims to enhance image loading capabilities, potentially by adding filtering or other custom processing to the images.

The affected components are:
- `ActorOverlay`
- `BlurredBackgroundImage`
- `PosterCard`

The `MoviePosterDetailScreen` was also slightly reformatted.
@karrar-abbas karrar-abbas merged commit 9b5eab9 into develop Jul 18, 2025
1 check passed
@karrar-abbas karrar-abbas deleted the feature/movie-actor-background-card branch July 18, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants