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

Resolve mouse cursor widget properties #658

Merged
merged 1 commit into from
Mar 5, 2023
Merged

Resolve mouse cursor widget properties #658

merged 1 commit into from
Mar 5, 2023

Conversation

jpnurmi
Copy link
Member

@jpnurmi jpnurmi commented Mar 5, 2023

I was looking at some old Flutter PRs for themable mouse cursors and noticed that the MouseCursor type of widget properties were not used "as is" but also resolved against the widget state with help of MaterialStateProperty.resolveAs. The Flutter team recommended doing it this way to support MaterialStateMouseCursor in place of MouseCursor.

@jpnurmi jpnurmi requested a review from Jupi007 March 5, 2023 18:11
Copy link
Member

@Jupi007 Jupi007 left a comment

Choose a reason for hiding this comment

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

Fine LGTM 👍

@jpnurmi jpnurmi merged commit 0b4ffc4 into ubuntu:main Mar 5, 2023
@jpnurmi jpnurmi deleted the resolve-mouse-cursor branch March 5, 2023 18:50
@jpnurmi jpnurmi mentioned this pull request Mar 11, 2023
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