-
Notifications
You must be signed in to change notification settings - Fork 347
Add reusable EmojiWidget #1928
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
base: main
Are you sure you want to change the base?
Add reusable EmojiWidget #1928
Conversation
f25380a to
ef29c09
Compare
|
Revision pushed, fixing a bug where I forgot to use ef29c09 settings [nfc]: Centralize logic for checking device animation settings |
ef29c09 to
9ab45a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @chrisbobbe. Overall LGTM, just one comment.
lib/widgets/user.dart
Outdated
| emojiDisplay: emojiDisplay, | ||
| squareDimension: size, | ||
| neverAnimateImage: neverAnimate, | ||
| imageAnimationMode: ImageAnimationMode.animateNever, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this respect the value of neverAnimate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh, yes, thanks for the catch!
This makes the caller a bit more verbose, but we're about to make it simpler than it was before.
This makes the caller a bit more verbose, but we're about to make it simpler than it was before.
There are several places where we switch on EmojiDisplay, mostly with TODOs to factor the switch out to something central. Here's a widget to accomplish that factoring, used first in ReactionChip.
…quare Instead of laying out - just padding, in the case where the network request failed, and - nothing, in the case where the URL didn't parse.
9ab45a0 to
3d7da28
Compare
|
Thanks for the review! Revision pushed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM, moving over to Greg's review.
Stacked on #1926.
This resolves a few TODOs, and will be useful toward