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

RTL Icon Padding Issue in Get.rawSnackbar() #3069

Open
ZhiaDev opened this issue Mar 31, 2024 · 1 comment
Open

RTL Icon Padding Issue in Get.rawSnackbar() #3069

ZhiaDev opened this issue Mar 31, 2024 · 1 comment
Assignees

Comments

@ZhiaDev
Copy link

ZhiaDev commented Mar 31, 2024

Dear GetX Team,

I'm encountering an issue with Get.rawSnackbar() in my RTL (Right-to-Left) application. The spacing between the icon and the message appears to be doubled compared to LTR (Left-to-Right) mode. This creates an unbalanced and visually unappealing layout, especially for longer messages.

If possible, I would greatly appreciate it if you could consider addressing this icon padding issue to improve the rendering of Get.rawSnackbar() in RTL applications.

For your reference, I've attached a screenshot that visually demonstrates the problem.

Thank you for your time and attention to this matter.

example:

// should run in a RTL app

Get.rawSnackbar(
    message: 'نص اختباري',
    snackPosition: SnackPosition.TOP,
    margin: const EdgeInsets.all(16),
    icon: const Icon(
        Icons.check_circle_outlined,
        color: Colors.white
    ),
);

To Reproduce
Steps to reproduce the behavior:

  1. call a Get.rawSnackbar() in a RTL app

Screenshots
Group 630

another example:
Group 633

Flutter Version:
3.19.4

Getx Version:
4.6.6

Describe on which device you found the bug:
IOS Simulator and Android Emulator

@ZhiaDev
Copy link
Author

ZhiaDev commented Apr 11, 2024

@jonataslaw Is there a solution to this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants