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: expose BaseOverlayImage for external implementation #1990

Merged
merged 1 commit into from
Nov 24, 2024

Conversation

JaffaKetchup
Copy link
Member

  • Switch to abstract instead of sealed
  • Renamed _render to layout (added protected metadata)
  • Removed non-virtual metadata from build
  • Replaced Image.color & .colorBlendMode for opacity support with normal .opacity field using AlwaysStoppedAnimation
  • Removed ambient MapCamera from layout arguments

I feel like we're overcomplicating things, and maybe doing too much for the user? It's much more flexible if we allow the user to pass their own Image, and not much more difficult if we allow them to do so. I'm not sure if it would work, but then wouldn't any widget work (like https://github.com/TimBaumgart/flutter_map_polywidget), not just images?

Renamed `_render` to `layout` (added protected metadata)
Removed non-virtual metadata from `build`
Replaced `Image.color` & `.colorBlendMode` for `opacity` support with normal `.opacity` field using `AlwaysStoppedAnimation`
Removed ambient `MapCamera` from `layout` arguments
Copy link
Contributor

@mootw mootw left a comment

Choose a reason for hiding this comment

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

looks good. i like this. i think it should be possible to expand to any widget in the future. though, the library you mentioned has extra features that honestly might be out of scope for us to implement and maintain

@JaffaKetchup JaffaKetchup merged commit 261db40 into master Nov 24, 2024
8 checks passed
@JaffaKetchup JaffaKetchup deleted the overlay-image-opacity-fix branch November 24, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants