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

Stack overflow in DodgeSizeModifier in "polygon_custom" Custom Modifier example #311

Open
richardloxley opened this issue Aug 14, 2024 · 0 comments

Comments

@richardloxley
Copy link

When copying the code for DodgeSizeModifier in example/lib/pages/polygon_custom.dart into my own app, I was getting Stack Overflow errors.

On investigating it seems to be the same error that was already fixed in the library's DodgeModifier described in #95

I was able to fix this in my code, by changing the equalTo implementation in my DodgeSizeModifier to:

  bool equalTo(Object other) {
    return other is DodgeSizeModifier;
  }

It may not be worth you fixing the example code, but I thought I'd raise an issue so if anyone else searches for this error they can find the solution.

Thanks for the library BTW!

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

No branches or pull requests

1 participant