Closed ariedov closed 6 years ago
What was the issue?
Updated the description.
For instance: the axis change is not applied until the app restart. Does not work by hot reload.
Figured out and fixed. But want to ask first, Bloc is currently initialize at SnapList creation (initState) using final fields including sizeProvider, separatorProviders, etc. But if we want to support runtime build and changes to get hot-reload advantage, we should shrink them into fields. Would it be okay to you?
Yes, it will be totally ok. Thank you!
Just don't forget to update on didUpdateWidget
.
Yup :)
@ariedov hmm... seems I got a problem with keeping start position. So, when we do hot reload the app, the center position is still on previous center. But that leads to make all center positions to off from center since it's not correctly calculated. Why don't we reset the progress when it does reload? I was keep testing on make it to move proper position but I think just resetting all stuffs would be safe and stable in any situations :)
I am not sure what do you mean by
reset the progress when it does reload
Do you mean that you want to reset the progress and position on reassemble
? If yes - then I am ok with it.
never mind. It should not move the position when axis didn't change. Then could you tell me how to move to specific position by force?
There is no way to move to a specific position. For now, at least ;)
@ariedov oh well.....
this is the bug that I have now :) when we change axis, it's off
after scrolling a few times, it gets back to normal
There might be a few reasons for it.
If everything else works, I mean if we can change card sizes, orientation and separator sizes by hot reload - I would appreciate a pull request. This issue can be fixed later.
@ariedov let me try a bit more! I'll just make PR if I can't resolve the issue
Ok, no problem. Thank you very much, I really appreciate your help.
Done with that. I'll create a new issue for position storing.
When changing a parameter on the Snaplist itself the app has to be restarted to apply changes.