dyn uplist

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-05 11:47:22 +08:00
parent 203a997583
commit 52373dc540
7 changed files with 122 additions and 56 deletions

View File

@@ -61,7 +61,16 @@ class _DynamicsPageState extends State<DynamicsPage>
child: SizedBox(
width: isTop ? null : 64,
height: isTop ? 76 : null,
child: Obx(() => _buildUpPanel(_dynamicsController.upState.value)),
child: NotificationListener<ScrollEndNotification>(
onNotification: (notification) {
final metrics = notification.metrics;
if (metrics.pixels >= metrics.maxScrollExtent - 300) {
_dynamicsController.onLoadMoreUp();
}
return false;
},
child: Obx(() => _buildUpPanel(_dynamicsController.upState.value)),
),
),
);
}