Comments (4)
I'll try to fix it soon
from packages.flutter.
as hotfix you can usage it code:
PDFView.builder(
controller: pageController,
document: snapshot.data,
builder: (PDFPageImage pageImage, bool isCurrentIndex) {
Widget image = ExtendedImage.memory(
pageImage.bytes,
fit: BoxFit.contain, // <- set contain instead fitWidth
mode: ExtendedImageMode.gesture,
initGestureConfigHandler: (_) => GestureConfig(
minScale: 1,
animationMinScale: .75,
maxScale: 2,
animationMaxScale: 2.5,
speed: 1,
inertialSpeed: 100,
inPageView: true,
initialScale: 1.0,
cacheGesture: false,
),
onDoubleTap: (ExtendedImageGestureState state) {
final pointerDownPosition = state.pointerDownPosition;
final begin = state.gestureDetails.totalScale;
double end;
if (begin == _doubleTapScales[0]) {
end = _doubleTapScales[1];
} else {
end = _doubleTapScales[0];
}
state.handleDoubleTap(
scale: end,
doubleTapPosition: pointerDownPosition,
);
},
);
if (isCurrentIndex) {
image = Hero(
tag: 'pdf_view' + pageImage.pageNumber.toString(),
child: image,
);
}
return image;
},
);
Today I will prepare an update
from packages.flutter.
@SergeShkurko thank you
from packages.flutter.
fixed in 3.1.0
from packages.flutter.
Related Issues (20)
- Null check operator used on a null value
- Error in iOS: Could not build the precompiled application for the device.
- LiveList.options not working with NotificationListener
- Drawing annotations on the pdfx
- pdfx: Migrate to `package:web` to support WASM HOT 2
- PDFx: page resize with different aspect ratio HOT 1
- When the PDF is one-page-long and user zooms in, he cannot zoom out completely.
- Printing and pdfx are incompatible in windows
- How can i custom Widget?
- Support for js ^0.7.1
- pdfx 2.6.0 does not build on Windows
- Support for Signature widgets/annotations ?
- getting cfi as null "/6/0[null]!/4/2/4" in middle HOT 1
- [pdfx] Android : Close document throw a PlateformException with an Unknown error HOT 1
- [pdfx] Update to `device_info_plus` >= 10.0.1 HOT 12
- Support js 0.7.1 in pdfx
- Can you update the image package to be compatible with other packages ?
- An unhandleable error is thrown when attempting to display unsupported files, such as password-protected PDFs
- updagre to photo_view 0.15.0
- Please update to support photo_view 0.15.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packages.flutter.