fix(flutter): 修复下拉刷新页面跟随

This commit is contained in:
Zhou Weidong committed 2026-10-20 16:57:28 +08:00
1 parent c4dcb714ab
commit 69eaacd74f
16 files changed
+85 -34

No files matched your search

+3 -3
View File
@@ -69,7 +69,7 @@ class _NoticesPageState extends State<NoticesPage> {
return AppPullToRefresh(
onRefresh: _controller.refresh,
child: ListView(
physics: const AlwaysScrollableScrollPhysics(),
physics: AppPullToRefresh.physics,
children: [
SizedBox(
height: MediaQuery.sizeOf(context).height * 0.7,
@@ -94,7 +94,7 @@ class _NoticesPageState extends State<NoticesPage> {
return AppPullToRefresh(
onRefresh: _controller.refresh,
child: ListView(
physics: const AlwaysScrollableScrollPhysics(),
physics: AppPullToRefresh.physics,
children: [
SizedBox(
height: MediaQuery.sizeOf(context).height * 0.7,
@@ -113,7 +113,7 @@ class _NoticesPageState extends State<NoticesPage> {
onRefresh: _controller.refresh,
child: ListView.separated(
key: const Key('notices-list'),
physics: const AlwaysScrollableScrollPhysics(),
physics: AppPullToRefresh.physics,
padding: const EdgeInsets.fromLTRB(16, 12, 16, 28),
itemCount: _controller.notices.length + 1,
separatorBuilder: (_, _) => const SizedBox(height: 10),