I get some video data from backend and use PageView to show them. The video data is obtained by paging from backend.In some situations, we need to turn the page forward. So I insert video data forward and call setState() to rebuild PageView. What should I do if I want to keep the state of current video page in this situation?
I try to resolve it using Key()
and AutomaticKeepAliveClientMixin
to keep state of current page, but it did not work. I think it may be because the index change of the current page, so it must be rebuilt. Is there any other way to meet the requirement? Thanks!!