Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(passkit_ui): Passes are now somewhat correctly sized #39

Closed
wants to merge 2 commits into from

Conversation

ueman
Copy link
Owner

@ueman ueman commented Jun 27, 2024

No description provided.

@ueman ueman added the package: passkit_ui Issues relevant for the "passkit_ui" package label Jun 27, 2024
@override
Widget build(BuildContext context) {
// TODO(ueman): Improve sizing mechanism, since it's not a11y friendly.
return FittedBox(
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I choose this approach mostly because I'm not sure yet what I would expect as a user. It needs to be somewhat absolutely defined with a certain aspect ratio, since that's what the spec gives us. But I'm also not sure yet how to deal with a11y 🤷‍♂️

@ueman ueman marked this pull request as draft June 28, 2024 20:14
@ueman ueman closed this Jul 3, 2024
@ueman
Copy link
Owner Author

ueman commented Jul 3, 2024

Looking at the wallet app on iOS again, it seems passes have a min and max height, not a fixed height. The width is fixed though, and according to the docs, overflow is just cut off.

@ueman ueman reopened this Jul 6, 2024
@ueman ueman closed this Jul 7, 2024
@ueman ueman deleted the improve-sizing-for-passes branch July 21, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: passkit_ui Issues relevant for the "passkit_ui" package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant