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

Separate textDirection and layoutDirection for RTL Support #1757

Open
ahde46 opened this issue Oct 5, 2024 · 0 comments
Open

Separate textDirection and layoutDirection for RTL Support #1757

ahde46 opened this issue Oct 5, 2024 · 0 comments
Labels
enhancement New feature or request needs triage

Comments

@ahde46
Copy link

ahde46 commented Oct 5, 2024

Hi,
thank you for your continuous hard work on this great package! I recently updated the pdf plugin to version ^3.10.5 and noticed that setting textDirection: pw.TextDirection.rtl now not only affects the text direction but also renders the widget layout from right to left.

In my use case, I want to have RTL support for the text only, while keeping the overall widget layout unaffected (LTR). Before this update, it worked as expected, but with the recent changes, the textDirection property now affects both text and widget layout, which might not be suitable for all cases.

Would it be possible to:

Separate textDirection (for text rendering) and layoutDirection (for widget layout)?
The textDirection should only impact the text flow, while layoutDirection should control how widgets are laid out.
Revert to the previous behavior where textDirection only impacted the text direction.
This separation would give more flexibility for mixed RTL and LTR content, allowing better control over text and layout independently.

Thank you again for maintaining this project, and I appreciate your consideration of this request!

@ahde46 ahde46 added enhancement New feature or request needs triage labels Oct 5, 2024
Repository owner deleted a comment Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage
Projects
None yet
Development

No branches or pull requests

1 participant