TF-1017 Add function handle when press scrollToTop
(cherry picked from commit 443196f84d07638ff8dc668e08296d0c8cd4905b)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user