-1

I want to implement swipe to refresh or pull to refresh with tab bar view in flutter...any suggest

prakash Mp
  • 363
  • 2
  • 15

1 Answers1

1

Use RefreshIndicator Refer https://medium.com/codechai/adding-swipe-to-refresh-to-flutter-app-b234534f39a7

RefreshIndicator(
          onRefresh: _pullRefresh,
          child:<<your child>>
Dev Ananth
  • 447
  • 1
  • 3
  • 10
  • body: TabBarView( children: [ new PageView.builder()]) >> my view contain like this how can i re arrage @dev – prakash Mp Apr 20 '21 at 06:44
  • 'dynamic' doesn't extend 'T extends State'. Try using a type that is or is a subclass of 'T extends State'.darttype_argument_not_matching_bounds The name 'RefreshIndicatorState' is defined in the libraries 'package:flutter/src/material/refresh_indicator.dart (via package:flutter/material.dart)' and 'package:pull_to_refresh/src/internals/indicator_wrap.dart (via package:pull_to_refresh/pull_to_refresh.dart)'. Try using 'as prefix' for one of the import directives, or hiding the name from all but one – prakash Mp Apr 21 '21 at 05:21