Closed TerehinAV closed 1 year ago
Same issue @TerehinAV Did you fix this?
Same issue @TerehinAV Did you fix this?
Yes, but I don't like the way. It should work with origin types.
itemBuilder: (context, dynamic issueDetails, index) { Widget issueDetailsListItem = IssueDetailsListItem( issueDetails: issueDetails, ); return issueDetailsListItem; },
just replace every instance of final PagingController
with final PagingController<int, IssueDetails>
.
Hello!
I faced this issue when tried to implement an option to refresh pagingController for one screen in PersistentTabView from onPressed callback in PersistentBottomNavBarItem.
The error
appears only if declare pagingController in parent screen and transfer it into screen where I use paginController using constructor args.
If I declare this pagingController in State class of needed screen - it works well, but I can't refresh it when I press navigation button of this screen in PersistentTabView.
HomePageView:
IssueListPage:
IssueDetailsListItem is a StatelessWidget
IssueDetails (item in list) is a data class
Any ideas could help