You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the SuperTextField widget from the Super Editor package, and I encountered an issue when handling right-to-left (RTL) input. While the text direction dynamically adjusts to RTL based on the input using Directionality widget, the cursor does not stay on the left side of the text field when in RTL mode. Instead, it behaves as if it’s in left-to-right (LTR) mode, which is inconsistent with standard RTL text editing behavior.
This behavior causes confusion for users who expect the cursor to align properly for RTL languages such as Arabic or Hebrew.
Steps to Reproduce:
1- Use the SuperTextField widget with a text controller that updates Directionality dynamically based on input.
2- Enter any RTL text (e.g., Arabic or Hebrew).
3- Observe the text aligns correctly to the right, but the cursor stays on the right instead of shifting to the left, as expected for RTL input.
Expected Behavior:
When in RTL mode:
-The text should align to the right.
-The cursor should remain at the leftmost position of the text field, consistent with RTL text editing behavior.
Actual Behavior:
When in RTL mode:
-The text aligns to the right (as expected).
-However, the cursor stays on the right, behaving as if the input is in LTR mode.
The text was updated successfully, but these errors were encountered:
I am using the SuperTextField widget from the Super Editor package, and I encountered an issue when handling right-to-left (RTL) input. While the text direction dynamically adjusts to RTL based on the input using Directionality widget, the cursor does not stay on the left side of the text field when in RTL mode. Instead, it behaves as if it’s in left-to-right (LTR) mode, which is inconsistent with standard RTL text editing behavior.
This behavior causes confusion for users who expect the cursor to align properly for RTL languages such as Arabic or Hebrew.
Steps to Reproduce:
1- Use the SuperTextField widget with a text controller that updates Directionality dynamically based on input.
2- Enter any RTL text (e.g., Arabic or Hebrew).
3- Observe the text aligns correctly to the right, but the cursor stays on the right instead of shifting to the left, as expected for RTL input.
Expected Behavior:
When in RTL mode:
-The text should align to the right.
-The cursor should remain at the leftmost position of the text field, consistent with RTL text editing behavior.
Actual Behavior:
When in RTL mode:
-The text aligns to the right (as expected).
-However, the cursor stays on the right, behaving as if the input is in LTR mode.
The text was updated successfully, but these errors were encountered: