Hello! I am currently using a DefaultTabController that has a Scaffold whose body is a ListView. Inside the ListView, I have some children Widget: buildProfileHeader() contains a FutureBuilder; the Widget at the bottom of the ListView is an AppBar which contains the TabBar (2 tabs), and right underneath the AppBar I have a Container that has the TabBarView. Everything works perfectly, but now I want to implement something more:
- I want to use a RefreshIndicator (or something similar) to update the buildProfileHeader(), whenever the user wants to (when the user overscrolls)
- I want one of the tabs (there are 2 in total), to NOT be present if a specific condition is met (if it is NOT the profile of the current user, I do NOT want one of the tabs to appear).
How could I implement both #1 & #2?