rafalbednarczuk / curved_navigation_bar

Animated Curved Navigation Bar in Flutter
BSD 2-Clause "Simplified" License
694 stars 242 forks source link

IN RTL #16

Closed AmirAemi closed 5 years ago

AmirAemi commented 5 years ago

I use this in a RTL app and it don't work right

Mohammad-ezzidden commented 5 years ago

I also have problem when using RTL.

rafalbednarczuk commented 5 years ago

Please provide sample code and configuration of project with bug.

AmmarAl-Wazzan commented 5 years ago

hi ... I used it in the Arabic language ... which is RTL layout ... there is a problem ...

the problem is when i have 5 items ... and chose the centered item ... ok

but when i chose second items which its index = 1 ... it animated to the mirror position just like i chose the item 4 which its index = 3 .... also the first item (index = 0) look like i choose item 5 (index 4) ....

bottomNavigationBar: CurvedNavigationBar( index: _page, height: 55.0, items: <Widget>[ Icon(Icons.info, size: 25,color: Colors.white,), Icon(FontAwesomeIcons.hashtag, size: 22,color: Colors.white,), Icon(FontAwesomeIcons.briefcaseMedical, size: 20,color: Colors.white,), Icon(FontAwesomeIcons.solidMoon, size: 20,color: Colors.white,), Icon(Icons.account_circle, size: 25,color: Colors.white,), ], color: Colors.cyan, buttonBackgroundColor: Colors.pink, backgroundColor: Colors.white, animationCurve: Curves.easeInOut, animationDuration: Duration(milliseconds: 200), onTap: (index) { setState(() { _page = index; }); }, )

Real Example:

Mw6nr (1)

AmmarAl-Wazzan commented 5 years ago

@ksamj

The solution here is perfect: https://github.com/rafalbednarczuk/curved_navigation_bar/pull/26/commits/0a2601f4af2022cc6dea38dc9620606d5b00e077

KsAmJ commented 5 years ago

@ksamj

The solution here is perfect: 0a2601f thanks so should i modify it on the source code or you planning to update it on the pub??

AmmarAl-Wazzan commented 5 years ago

@ksamj you welcome I updated the source code ... and its worded

rafalbednarczuk commented 5 years ago

wait for final version of RTL support which will be uploaded on pub

rafalbednarczuk commented 5 years ago

fixed in https://github.com/rafalbednarczuk/curved_navigation_bar/commit/a0901e2f57bb6b714eaa8adec6f71fde1bdc5516 pub updated - version 0.2.20