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

ExtendedImage 加载长图, 将fit属性设置为BoxFit.fitWidth, 图片不能上下滑动查看 #668

Open
PWZ-Marvin opened this issue Mar 25, 2024 · 7 comments

Comments

@PWZ-Marvin
Copy link

Platforms

dart

Description

  1. ExtendedImage 加载长图, 不能上下滑动
  2. 为了使长图可以上下滑动, 我在外层加了一个SingleChildScrollView, 这样可以使图片上下滑动.但是在放大图片的时候, 不能滑动到最底部.

My code

ExtendedImage.file(
File(model.localPath),
enableSlideOutPage: widget.useAnimation,
fit: BoxFit.fitWidth);

Try do it

No response

@PWZ-Marvin
Copy link
Author

请教一下, 加载长图的问题, 可以怎么解决
@zmtzawqlp

@zmtzawqlp
Copy link
Member

zmtzawqlp commented Mar 29, 2024

模式改成 手势模式,别在外边加 scrollview

@PWZ-Marvin
Copy link
Author

PWZ-Marvin commented Apr 1, 2024

@zmtzawqlp
你好,我在外边加了SingleChildScrollView, 可以上下滑动,但是会出现另外一个问题, 当我将长图放大之后, 不能滑动到最底部. 这种情况应该怎么解决

RPReplay_Final1711937733.MP4

@zmtzawqlp
Copy link
Member

提供一个最小的能重现问题的demo,不要在外面加 SingleChildScrollView

@PWZ-Marvin
Copy link
Author

PWZ-Marvin commented Apr 1, 2024

@zmtzawqlp
你好, 这是一个demo, 最外层没有加SingleChildScrollView, 当我将图片的fit设置成BoxFit.fitWidth, 长图不能上下滑动.

如果在外面加上SingleChildScrollView, 长图可以滑动,但是会出现上面视频中, 不能上滑到最底部的问题

extend_image_demo.zip

@PWZ-Marvin
Copy link
Author

@zmtzawqlp
有解决方案吗

@zmtzawqlp
Copy link
Member

@zmtzawqlp 有解决方案吗

空了看下

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

2 participants