Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simultaneously为false时,clamping不同值的表现不一样,且clamping为false时容易让用户误以为是bug。 #872

Open
GroovyKetchup opened this issue Nov 14, 2024 · 0 comments

Comments

@GroovyKetchup
Copy link

GroovyKetchup commented Nov 14, 2024

在simultaneously为false的前提下,clamping值有不同表现:

  1. clamping为false时,如果此时下拉刷新还在进行,但是上拉到底还是会有提示且释放无效,则容易让用户误以为是上拉加载有bug。

EasyRefresh(
header: ClassicHeader(
),
footer: ClassicFooter(
),
resetAfterRefresh: false,
onRefresh: () async {
await Future.delayed(const Duration(seconds: 10));
},
onLoad: () async {
await Future.delayed(const Duration(seconds: 10));
},
simultaneously: false,
child: ListView(
children: List.generate(
10,
(index) => Container(
height: 100,
child: Center(
child: ElevatedButton(
onPressed: () {}, child: Text("$index"))),
)),
))

noClamping.mp4
  1. clamping为true时,如果此时下拉刷新还在进行,则上拉到底不会有提示出现。

EasyRefresh(
header: ClassicHeader(
clamping: true,
),
footer: ClassicFooter(
infiniteOffset: null,
clamping: true,
),
resetAfterRefresh: false,
onRefresh: () async {
await Future.delayed(const Duration(seconds: 10));
},
onLoad: () async {
await Future.delayed(const Duration(seconds: 10));
},
simultaneously: false,
child: ListView(
children: List.generate(
10,
(index) => Container(
height: 100,
child: Center(
child: ElevatedButton(
onPressed: () {}, child: Text("$index"))),
)),
))

clamping.mp4

感觉两者是否应该统一为clamping为true时的表现?既然是不允许刷新和加载同时进行,那么当一个操作进行时,另外一个操作应该完全屏蔽掉。

@GroovyKetchup GroovyKetchup changed the title simultaneously为false时,clamping不同值得表现不一样,且clamping为false时容易让用户误以为是bug。 simultaneously为false时,clamping不同值的表现不一样,且clamping为false时容易让用户误以为是bug。 Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant