Skip to content

Conversation

@zachseidner1
Copy link
Collaborator

@zachseidner1 zachseidner1 commented Apr 10, 2025

Note: This PR was made for The Art of @Preview tech talk

Overview

Adds a preview for the ProfileHeader component by creating ResellAsyncImage, a wrapper around AsyncImage that allows the developer to pass in a previewImageResource to specify what the image should show in previews.

Changes Made

  • Adds preview to ProfileHeader
  • Use @PreviewParameter to make ResellTextButton previews more concise

Test Coverage

  • All previews show

Next Steps

  • Get rid of usages of AsyncImage and migrate to ResellAsyncImage
  • Add the previewImageResource parameter to AnimatedClampedAsyncImage and use similar logic to allow this component to work in previews.

Screenshots

image

@zachseidner1 zachseidner1 changed the title Zach/async image preview Preview Async Images Apr 10, 2025
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.

2 participants