Reload from server while keeping skeleton static
zulfi007 opened this issue · comments
While loading from server. Screen gets white and widget rebuild itself. Instead it would be nice to keep table skeleton visible and just reload the rows portion with loading indicator . In this way, it would be much more interactive
Hi,
You can set a custom loading widget with the loadingWidget property.
Maybe it would be a nice idea to change the default loader to the suggested be inside the table instead of replacing it. Keep the header section and have the loading inside the table.
Added basic support for this, if no custom loading is set the table will show empty rows and a spinner in the center. If the current page has a number of rows bigger as the vertical size available, the spinner might not be visible (because you need to scroll donw/up).
Not sure right now how to improve it, currently I'm using a Stack Widget with Center alignment.
Would be super happy if you, or anybody else, pushes a pull request for an improved version of this