feat: refresh on top (#524)

* feat: refresh on top

* check ctr client

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>

---------

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
My-Responsitories
2025-03-25 13:46:38 +08:00
committed by GitHub
parent 7a6085e923
commit a74edd22c1
5 changed files with 87 additions and 55 deletions

View File

@@ -140,9 +140,9 @@ class _MainAppState extends State<MainApp>
dynamic currentPage = _mainController.pages[value];
if (currentPage is HomePage) {
_homeController.animateToTop();
_homeController.toTopOrRefresh();
} else if (currentPage is DynamicsPage) {
_dynamicController.animateToTop();
_dynamicController.toTopOrRefresh();
}
int now = DateTime.now().millisecondsSinceEpoch;