onRefocus method
Implementation
@protected
void onRefocus() {
final tScrollController = PrimaryScrollController.of(context);
if (tScrollController.hasClients == true) {
for (var i in tScrollController.positions.where((e) => e.hasPixels)) {
i.animateTo(
0,
duration: const Duration(milliseconds: 500),
curve: Curves.easeOut,
);
}
}
}