TF-1017 Add function handle when press scrollToTop

(cherry picked from commit 443196f84d07638ff8dc668e08296d0c8cd4905b)
This commit is contained in:
hieubt
2023-10-09 23:47:38 +07:00
committed by Dat H. Pham
parent bf208d9353
commit 931ff728db
5 changed files with 50 additions and 39 deletions
@@ -1096,4 +1096,10 @@ class ThreadController extends BaseController with EmailActionController {
return true;
}
}
void scrollToTop() {
if (listEmailController.hasClients) {
listEmailController.animateTo(0, duration: const Duration(milliseconds: 500), curve: Curves.fastOutSlowIn);
}
}
}