i have this code
RefreshIndicator(
key: _refreshIndicatorKey,
onRefresh: onrefreh,//don't do anything
child: TodoPage())
and TodoPage likes that
Widget build(BuildContext context) {
print('tt');
final todoBloc = TodoProvider.of(context);
return Scaffold(
appBar: AppBar(title: Text("Title")),
body: Center(
child: Column()
......
}
sometimes when i even touch the main page i can see 'tt' String twice on bebugconsole i think refreshindicator make todoPage rebuild and when i refresh definitely i can see two 'tt' result on debug console why they rebuild twice? and if i want only one time when i surely swipe the page to refresh