pull to refresh data from api with flutter 3.0

add package name in pubspec.yeml smartrefresh:

LiquidPullToRefresh( key: _refreshIndicatorKey, onRefresh: _handleRefresh, showChildOpacityTransition: false, // color: Colors.transparent, backgroundColor: Colors.grey, onComplete:Wrap( runSpacing: 5, children: const Icon(Icons.done_outlined,color: Colors.grey,size: 25), Text("Succeed"), , ), onFail: Wrap( runSpacing: 5, children: const Icon(Icons.close,color: Colors.grey,size: 25), Text("Failed"), , ), onLoading: const Text("Loading"), child: StreamBuilder

Libraries

smartrefresh