getx icon indicating copy to clipboard operation
getx copied to clipboard

RTL Icon Padding Issue in Get.rawSnackbar()

Open ZhiaDev opened this issue 11 months ago • 1 comments

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 avatar Mar 31 '24 02:03 ZhiaDev

@jonataslaw Is there a solution to this problem?

ZhiaDev avatar Apr 11 '24 10:04 ZhiaDev