Skip to content

✨ Feature Request: Reverse Option in PdfViewPinch for RTL (Quranic) PDFs #591

@kamrul-cse

Description

@kamrul-cse

Hi πŸ‘‹ and thank you for the great work on pdfx β€” it has been an excellent solution for our needs so far.

I’m developing a Quranic app, where we use pdfx to display Quran PDFs in right-to-left (RTL) reading order. These PDFs are typically laid out so that Page 1 is the last page (e.g., Page 604), and the user should scroll or swipe from right to left, consistent with Arabic reading flow.

❓ Feature Request

Please consider adding a reverse or isRtl option to the PdfViewPinch widget that:
β€’ Reverses the scroll/swipe direction.
β€’ Allows users to naturally swipe right-to-left, just like they would in a physical Quran.
β€’ Ensures the first visible page is actually the last page in the PDF (i.e., Page 604 shows first, then 603, 602, etc.).

πŸ” Use Case

Currently, we use:

PdfViewPinch(
  controller: controller,
  scrollDirection: Axis.horizontal,
)

But the swipe direction and page ordering feel unintuitive for Arabic readers of the Quran. Having this reverse option would drastically improve UX for apps with religious texts and RTL content.

The simple PdfView has the option reverse, we need this in PdfViewPinch:

PdfView(
      controller: pdfController,
      reverse: true,
      onPageChanged: onPageChanged,
    )

βœ… Bonus Points

If this can be paired with proper PageController behavior (e.g., jumpToPage(604) shows first), it would be a huge win for all RTL-based reading apps.

Thanks again for this awesome package. Happy to help test or contribute to this feature if needed!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions