Advertisement
anik11556

Refresh

Nov 12th, 2023
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. Future<void> _refreshData() async {
  2.  
  3. user = await SpecificWant().getUserByIdfromFb(user!.id);
  4. setState((){
  5. print(user?.userName);
  6. });
  7.  
  8.  
  9. body: RefreshIndicator(
  10. onRefresh: _refreshData,
  11. child: CustomScrollView(
  12. slivers: <Widget>[
  13. TopBoard(user: user,),
  14. SliverList(
  15. delegate: SliverChildBuilderDelegate((BuildContext context, int index) {
  16. if (index > 0) return nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement