-
Notifications
You must be signed in to change notification settings - Fork 28.4k
Exception thrown when ScrollPosition pixels != null #31413
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
Comments
Could you share some context as to when this is happening? I believe it may be related to #18756, which I'm currently working on a fix for |
(Also, please follow the guidelines on information to share when submitting issues, it really helps with quickly identifying and solving the issue ^_^) |
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away! |
A beginner here.
The app doesn't crash but this trace is seen from the run console. I filtered the tree from children up and closed on something that did resulted in the crash not happening again. In my scenario, my app had two events that needed to run during the first launch and marked as complete, this were the introduction pages and location setup. In the
While painting the MaterialApp, I'd do it conditionally:
Then on the
Assuming that if the app was running for the first time, the values would obviously return I realised that defaulting the values to My solution was to default the variables to I tried to use a In summary, by initialising the variables to
|
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Logs
I/flutter (27216): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (27216): The following assertion was thrown while finalizing the widget tree:
I/flutter (27216): 'package:flutter/src/widgets/scroll_position.dart': Failed assertion: line 687 pos 12: 'pixels !=
I/flutter (27216): null': is not true.
The text was updated successfully, but these errors were encountered: