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

it Doesnt Support RTL(right to left) #83

Open
mohammedali933 opened this issue Sep 13, 2019 · 1 comment
Open

it Doesnt Support RTL(right to left) #83

mohammedali933 opened this issue Sep 13, 2019 · 1 comment

Comments

@mohammedali933
Copy link

it Doesnt Support RTL alignment
Could you please add rtl direction for the whole flushbar ?.

@mohammedali933 mohammedali933 changed the title it Doesnt Support RTL(right to left) alignment it Doesnt Support RTL(right to left) Sep 13, 2019
@shadyshrif
Copy link

shadyshrif commented Dec 26, 2019

@mohammedali933 I think it isn't a big deal. I found a solution for the text direction:

String msg='خطأ لا يوجد اختيار';
String details =  'برجاء اختيار دواء من القائمة او اختيار (دوائي ليس مدرح في حالة عدم وجود الدواء)';

  void showInfoFlushbar(BuildContext context) {
    Flushbar(
      titleText: Text(msg , textAlign: TextAlign.right,style: TextStyle(color: Colors.white,fontSize: 20),),
      messageText: Text(details , textAlign: TextAlign.right,style: TextStyle(color: Colors.white,fontSize: 16),),
      icon: Icon(
        Icons.info_outline,
        size: 28,
        color: Colors.blue.shade300,
      ),
      leftBarIndicatorColor: Colors.blue.shade300,
      duration: Duration(seconds: 3),
    )..show(context);
  }


image

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