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
home route quirk #48
Comments
Or do a Future.wait in the main before invoking the App part ..
…Sent from my iPad
On Feb 7, 2019, at 3:04 PM, David Alm ***@***.***> wrote:
Greetings,
I opened an issue earlier today but then closed it when I realized that it was a flutter isssue, not a flutter_pagewise issue.
However, this may help you:
Flutter seems to initialize the home route in parallel with the main widget initialization.
Therefore, if you happen to be using a PagewiseListView on your home route, then PagewiseListview will attempt to render, but finding an empty list of entries, will show only the retry button.
child: MaterialApp(
home: EntriesPage(), // problem if this widget contains a PagewiseListView
routes: {
//...
}
So, probably what I will do is show a splash screen until data is initialized.
Hope this helps,
DA
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I think the error that you were facing might be because of I have to ask, though: why are you using Pagewise with a local list? The purpose of Pagewise is to load data from a remote server one page at a time. I suspect you might be using the tool the wrong way |
Yes, I should have written back later yesterday when I figured that out! I am no longer using the local List _entries, and everything works smoothly and more efficiently. Much less code, too. Thank you for this work! You might consider adding something to your readme, saying something like, "PageWise caches the data internally. You can simply write your |
Cool! Yeah not a bad thing to mention. Thank you David! |
Greetings,
I opened an issue earlier today but then closed it when I realized that it was a flutter isssue, not a flutter_pagewise issue.
However, this may help you:
Flutter seems to initialize the
home
route in parallel with the main widget initialization.Therefore, if you happen to be using a
PagewiseListView
on yourhome
route, thenPagewiseListview
will attempt to render, but finding an empty list of entries, will show only the retry button.So, probably what I will do is show a splash screen until data is initialized.
Hope this helps,
DA
The text was updated successfully, but these errors were encountered: