flutter 当在Android中进行过度滚动时,ScrollView会拉伸UI,

emeijp43  于 6个月前  发布在  Flutter
关注(0)|答案(4)|浏览(59)

当我用scrollView或者任何具有滚动功能的UI包裹我的界面时,如果我在使用安卓设备时过度滚动,它会拉伸UI并将其推到顶部。当你再次滚动时,它又会恢复正常。但是这个bug在所有安卓设备上都存在,甚至在模拟器上也存在。

4ktjp1zp

4ktjp1zp1#

通过使用ClampingScrollPhysicsBouncingScrollPhysics,你可以移除过度滚动效果。

ki1q1bka

ki1q1bka2#

我们需要在应用程序中实现这个覆盖效果,我们有一个机制,如果它被覆盖了+-20px,它会自动跳转到下一个标签页。我也尝试过将物理效果更改为ClampingScollPhysics,但问题仍然存在...

周三,2024年7月17日,下午12:48 Shashitha Ashan @**.**>写道:通过使用ClampingScrollPhysicsBouncingScrollPhysics,您可以移除过度滚动效果——直接回复此电子邮件,查看GitHub上的<#151875 (comment)>,或者取消订阅 < https://github.com/notifications/unsubscribe-auth/BA3AIOU7I4MFNZSXUEYSDETZMXZSHAVCNFSM6AAAAABK7XV5B2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZSGQYDSNZZGM >。您收到这封邮件是因为您创建了这个主题。消息ID:@.**>

nle07wnf

nle07wnf3#

Like this one, I put ClampingScrollPhysics but the issue still persists. [image: Screenshot 2024-07-17 at 12.59.08 PM.png] Jude Michael de Roma Front-End Developer | PropHero Ph: +639101367528 On Wed, Jul 17, 2024 at 12:53 PM Jude Michael de Roma < ***@***.***> wrote:…
We need thi the overscolling in out app, we have this mechanism that if it overacrolled by +-20px, it will animate to the next tab. I also did that changing the physics to ClampingScollPhysics, but the issue still persists On Wed, Jul 17, 2024, 12:48 PM Shashitha Ashan ***@***.***> wrote: > ListView.builder( > physics: const ClampingScrollPhysics(), // or BouncingScrollPhysics() > itemBuilder: (context, index) { > return ListTile(); > }, > ) > > by using ClampingScrollPhysics or BouncingScrollPhysics you can > removed overscroll effect > > — > Reply to this email directly, view it on GitHub > <#151875 (comment)>, > or unsubscribe > < https://github.com/notifications/unsubscribe-auth/BA3AIOU7I4MFNZSXUEYSDETZMXZSHAVCNFSM6AAAAABK7XV5B2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZSGQYDSNZZGM > > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >

cyej8jka

cyej8jka4#

请提供完整的可复现代码示例(例如:main.dart),不包含第三方包的实现,以展示报告的行为。

相关问题