fix(flutter): 修复下拉刷新页面跟随
This commit is contained in:
1 parent
c4dcb714ab
commit
69eaacd74f
16 files changed
+85
-34
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user