-
Notifications
You must be signed in to change notification settings - Fork 53
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
Hot reload issues #7
Comments
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 |
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
Do you mean that you want to reset the progress and position on |
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. |
@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. |
It will invoke UiEvent that makes scrollProgress to 0 when it's reinitializing. Thus, it will update properly.
It will invoke UiEvent that makes scrollProgress to 0 when it's reinitializing. Thus, it will update properly.
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.
The text was updated successfully, but these errors were encountered: