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

aded support: spacing, enableDoubletap, setBackgroundColor (only android for now), onTap callback, zoom parameters (min, mid, max) #173

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

lcyper
Copy link

@lcyper lcyper commented Feb 16, 2022

also i upgraded gradle versions

@lcyper lcyper changed the title aded support: spacing, enableDoubletap, setBackgroundColor, onTap callback aded support: spacing, enableDoubletap, setBackgroundColor, onTap callback on Android (for now) Feb 17, 2022
@lcyper lcyper changed the title aded support: spacing, enableDoubletap, setBackgroundColor, onTap callback on Android (for now) aded support: spacing, enableDoubletap, setBackgroundColor, onTap callback, zoom parameters (min, mid, max): all on Android only (for now) Feb 17, 2022
@lcyper lcyper changed the title aded support: spacing, enableDoubletap, setBackgroundColor, onTap callback, zoom parameters (min, mid, max): all on Android only (for now) aded support: spacing, enableDoubletap, setBackgroundColor (only android for now), onTap callback, zoom parameters (min, mid, max) Apr 28, 2022
/// for double tap (middle step)
final double setMidZoom;

/// Works on [Android]
Copy link

@charlieforward9 charlieforward9 Oct 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plans to get this functional on iOS?

I recently opened #210 to address the unwanted default zoom of the PDFView build, but I am not experienced in Swift to develop a fix myself, yet.

final Color setBackgroundColor;

/// Works on [Android]
final double setMaxZoom;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS functionality?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, you founded in the other file.

_pdfView.minScaleFactor = _pdfView.scaleFactorForSizeToFit;
_pdfView.maxScaleFactor = 4.0;
_pdfView.maxScaleFactor = [args[@"setMaxZoom"] doubleValue]; // 4.0;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not proficient in this language, but does this code here fulfill the parameters setZoom for iOS and you just forgot to update the doc comments on flutter_pdfview.dart?

Copy link
Author

@lcyper lcyper Nov 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aded support:
spacing between pages,
enableDoubletap, (to enable zoom)
setBackgroundColor (only android for now),
onTap callback, (to add custom functionality)
zoom parameters (min, mid, max)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the correct title.

@lcyper
Copy link
Author

lcyper commented Nov 2, 2022

correct description:

aded support:

  • spacing between pages,
  • enableDoubletap, (to enable zoom)
  • setBackgroundColor (only android for now),
  • onTap callback, (to add custom functionality)
  • zoom parameters (min, mid, max)

@charlieforward9
Copy link

charlieforward9 commented Nov 3, 2022

@endigo This PR adds value to the package. What is preventing it from being approved?

@charlieforward9
Copy link

charlieforward9 commented Nov 20, 2022

@endigo I sent a message 18 days ago and am still facing the same question. I have an application to demo in 1 week that depends on this repository. It would be helpful to merge this PR for a more sophisticated UX.

At a minimum, I am requesting that the setZoom be added: (as done in this commit)
2a527fe

Thank you for contributing to the open-source community.

@mjablecnik
Copy link

@endigo When will be merged this PR?

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

Successfully merging this pull request may close these issues.

3 participants