flutter_speed_dial icon indicating copy to clipboard operation
flutter_speed_dial copied to clipboard

Issue In The RTL View

Open MahmoodAbuIssa96 opened this issue 4 years ago • 17 comments

Hi... I'm had used this library with 3.0.5 version, and it was works just fine. when I did update for the latest version (4.3.0), I got problem in showing the floating action in RTL. the icons and part of the text are missing

image

MahmoodAbuIssa96 avatar Sep 19 '21 14:09 MahmoodAbuIssa96

Use switchLabelPosition property and set it to true when using RTL. Just to remind you this library is not being maintained currently.

prateekmedia avatar Sep 19 '21 15:09 prateekmedia

If I but switchLabelPostion to true, it will switch the label and the icon positions, And i don't want that. I just wanted to show it properly!

This is how it should look like (using 3.0.5 version): image

And this is how it's now (using 4.3.0 version): image

there should be a way to show it properly or adding some margin or offset !! PS: I don't think the default view of the actions in the RTL view should be out of the screen

MahmoodAbuIssa96 avatar Sep 20 '21 07:09 MahmoodAbuIssa96

I face the same problem any solution guys

OrabiDev avatar Oct 10 '21 22:10 OrabiDev

it will be awesome if you follow the directionality with up and down direction

OrabiDev avatar Oct 10 '21 22:10 OrabiDev

Same issue here, any idea what widget/configuration causing this in the plugin?

a7md0 avatar Dec 13 '21 16:12 a7md0

@a7md0 until now not fixed, downgrade to 3.0.5

MahmoodAbuIssa96 avatar Dec 14 '21 14:12 MahmoodAbuIssa96

If I but switchLabelPostion to true, it will switch the label and the icon positions, And i don't want that. I just wanted to show it properly!

This is how it should look like (using 3.0.5 version): image

No offense, but I'm not arabic, so I don't see the difference between what you want and what I see by putting switchLabelPosition to true

That's what I see: image

Please show me what's the issue so I can try to fix that

-using latest version: 5.1.0

luca-colazzo avatar Apr 02 '22 16:04 luca-colazzo

No answer for more than 2 weeks. Closing as it works on my machine

luca-colazzo avatar Apr 18 '22 22:04 luca-colazzo

Dears @prateekmedia @luca-colazzo , please your support, I faced this issue when showing the floating action in RTL, using v 6.2.0, tried v 5.1.0 and found the same issue.

when set switchLabelPosition and locate at FloatingActionButtonLocation.endFloat

image

tarekmabdallah91 avatar Nov 10 '22 07:11 tarekmabdallah91

Can you please be more specific?

luca-colazzo avatar Nov 14 '22 19:11 luca-colazzo

@luca-colazzo

when my app is in RTL mode for Arabic or Urdu languages , the speedDial children are not aligned as expected like this one image

switchLabelPosition value is depending on the current local and the position for speedDial set as floatingActionButtonLocation: FloatingActionButtonLocation.endFloat,

but the result as shown in the last comment

tried versions 6.2.0 and 5.1.0 and have the same result

tarekmabdallah91 avatar Nov 15 '22 13:11 tarekmabdallah91

I have the same issue. when I use hebrew with "switchLabelPosition: true" then the icons are now shown on screen

lielgut avatar Dec 16 '22 12:12 lielgut

when changing RTL lang Arabic Hedin icon how can fix it ??

Eng-Mohamed-Elsayed avatar Feb 16 '23 19:02 Eng-Mohamed-Elsayed

when changing RTL lang Arabic Hedin icon how can fix it ??

error when using the label

Eng-Mohamed-Elsayed avatar Feb 16 '23 19:02 Eng-Mohamed-Elsayed

when changing RTL lang Arabic Hedin icon how can fix it ??

error when using the label

fixing using labelWidget no used label Mostly label not support RTL

Eng-Mohamed-Elsayed avatar Feb 16 '23 19:02 Eng-Mohamed-Elsayed

To reproduce this weird behavior, change the device language to RTL language, with the FAB aligned as bottomEnd, and the speed dial direction as SpeedDialDirection.up.

image

If we use switchLabelPosition we could see the child's labels but it's not aligned correctly.

image

It appears that the labels are rendered as RTL, but I think there's an issue in the offset of the CompositedTransformFollower widget, but I am not sure.

MrOsamah avatar Mar 19 '23 07:03 MrOsamah

I have had a go at trying to fix this. I have only tested for SpeedDialDirection.up so far.

The updated code is available here https://github.com/paulcappadona/flutter_speed_dial.git

You can set it up in your pubspec.yaml as follows flutter_speed_dial: path: https://github.com/paulcappadona/flutter_speed_dial.git

paulcappadona avatar Mar 30 '23 04:03 paulcappadona