mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
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:
committed by
GitHub
parent
7a6085e923
commit
a74edd22c1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user