Support RTL
Closed this issue · 3 comments
omidraha commented
Currently in RTL
mode the menu selection and its animation works wrong.
omidraha commented
It's related to this line:
Alignment get _alignment => Alignment(-1.0 + widget._valueGetter() / (widget._widgets.length - 1) * 2, 0.0);
It will be fixed by multiply by minus one when we are in RTL
mode:
Alignment get _alignment => Alignment(-1 * (-1.0 + widget._valueGetter() / (widget._widgets.length - 1) * 2), 0.0);
aliyigitbireroglu commented
I merged the PR, thank you.