packages.flutter icon indicating copy to clipboard operation
packages.flutter copied to clipboard

Zoom works incorrectly with horizontal pdf

Open shabanov-krl opened this issue 10 months ago β€’ 4 comments

Describe the bug When zoomed horizontal pdf, it can no longer be unzoomed

To Reproduce Steps to reproduce the behavior:

  1. Zoom horizontal pdf
  2. Try unzoom it
  3. Failed :c

Expected behavior Pdf unzoomed to initial state

Screenshots screencast-bpconcjcammlapcogcnnelfmaeghhagj-2023.10.03-16_51_02.webm

Smartphone

  • Device: Emulator Google Pixel 3A
  • OS: Android
  • Version: 13

Additional context

Source code: example from this package
Package version: 2.4.0
Output of flutter doctor -v
[βœ“] Flutter (Channel stable, 3.13.5, on Ubuntu 22.04.3 LTS 5.15.0-84-generic, locale ru_RU.UTF-8)
    β€’ Flutter version 3.13.5 on channel stable at /home/shabanov/snap/flutter/common/flutter
    β€’ Upstream repository https://github.com/flutter/flutter.git
    β€’ Framework revision 12fccda598 (8 Π΄Π½Π΅ΠΉ Π½Π°Π·Π°Π΄), 2023-09-19 13:56:11 -0700
    β€’ Engine revision bd986c5ed2
    β€’ Dart version 3.1.2
    β€’ DevTools version 2.25.0

[βœ“] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    β€’ Android SDK at /home/shabanov/Android/Sdk
    β€’ Platform android-33, build-tools 33.0.0
    β€’ Java binary at: /home/shabanov/.local/share/JetBrains/Toolbox/apps/android-studio/jbr/bin/java
    β€’ Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    β€’ All Android licenses accepted.

[βœ“] Chrome - develop for the web
    β€’ Chrome at google-chrome

[βœ“] Linux toolchain - develop for Linux desktop
    β€’ clang version 10.0.0-4ubuntu1
    β€’ cmake version 3.16.3
    β€’ ninja version 1.10.0
    β€’ pkg-config version 0.29.1

[βœ“] Android Studio (version 2022.3)
    β€’ Android Studio at /home/shabanov/.local/share/JetBrains/Toolbox/apps/android-studio
    β€’ Flutter plugin version 75.1.2
    β€’ Dart plugin can be installed from:
      πŸ”¨ https://plugins.jetbrains.com/plugin/6351-dart
    β€’ Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[βœ“] VS Code (version 1.82.2)
    β€’ VS Code at /usr/share/code
    β€’ Flutter extension version 3.72.0

[βœ“] Connected device (3 available)
    β€’ sdk gphone64 x86 64 (mobile) β€’ emulator-5554 β€’ android-x64    β€’ Android 13 (API 33) (emulator)
    β€’ Linux (desktop)              β€’ linux         β€’ linux-x64      β€’ Ubuntu 22.04.3 LTS 5.15.0-84-generic
    β€’ Chrome (web)                 β€’ chrome        β€’ web-javascript β€’ Google Chrome 117.0.5938.92

[βœ“] Network resources
    β€’ All expected network resources are available.

β€’ No issues found!

shabanov-krl avatar Oct 03 '23 13:10 shabanov-krl

@shabanov-krl Did you find a work around for this issue?

InspectlyMads avatar Oct 10 '23 11:10 InspectlyMads

@shabanov-krl Did you find a work around for this issue?

hello, i used https://github.com/kaichii/pdf_viewer

shabanov-krl avatar Oct 10 '23 11:10 shabanov-krl

@shabanov-krl Ive looked into that package too, but it seem to have limited zoom. Do you have the same problem?

InspectlyMads avatar Oct 10 '23 11:10 InspectlyMads

@shabanov-krl Ive looked into that package too, but it seem to have limited zoom. Do you have the same problem?

U can use zoomSteps, minScale and maxScale params of PDFViewer. Does this solve the problem? That was enough for me

shabanov-krl avatar Oct 10 '23 11:10 shabanov-krl