spkersten / flutter_coast

PageView wrapper that supports Hero-like animations
https://pub.dev/packages/coast
MIT License
22 stars 11 forks source link

Widget is not properly disposing causing this weird error #12

Open Gene-Dana opened 3 years ago

Gene-Dana commented 3 years ago

Hi there ! I much appreciate this package !

I'm running into this weird error where a crab is not disposed of 🤷🏻 2021-09-15 10 30 12

If you keep working with it, I get a 'widget is not disposed of' type error.

Am I doing something wrong here? Here is the repo https://github.com/Team-Crushing-It/l2t_beta

Gene-Dana commented 3 years ago

Well.. If it's not one thing, it's another ! I fixed this display error by changing it to a stateless widget, and now I'm having this weird bug on init

2021-09-15 10 40 34

See how the transition from the second section to the third section starts to move in a weird direction at first?

Gene-Dana commented 3 years ago

I also get this error still image

Gene-Dana commented 3 years ago

Well.. one issue was fixed by setting a fixed size to the container that it's traveling to ! This is working as I expect now ! 2021-09-15 11 21 26

Gene-Dana commented 3 years ago

Still getting that weird unmounted error.. Any insights would be welcome ! I think it may be because I do not originally define the crab in the first section?

See how the line in the section does not show? It happened after going back and coming up !

2021-09-15 11 20 07

Gene-Dana commented 3 years ago

@spkersten Hi 👋🏼 Is there something I'm doing wrong here?

spkersten commented 2 years ago

I think there are some checks missing here https://github.com/spkersten/flutter_coast/blob/master/lib/src/crab.dart#L160 to make sure all build contexts that are used are still mounted.

I'm not sure why that works usually but causes a problem in your app. I could add some checks, but it will be difficult to check if that is going to help. It would help if you could make a minimal reproducing example to narrow down where the problem comes from.

geekhenno commented 2 years ago

Hi I got the same error. is there any solution?

Myzel394 commented 2 years ago

Same error - seems like this package is dead, isn't it? The maintainer hasn't uploaded any updates on this for over a year now.

bsolca commented 8 months ago

Same issue here