Closed AmirAemi closed 5 years ago
I also have problem when using RTL.
Please provide sample code and configuration of project with bug.
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:
@ksamj
The solution here is perfect: https://github.com/rafalbednarczuk/curved_navigation_bar/pull/26/commits/0a2601f4af2022cc6dea38dc9620606d5b00e077
@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??
@ksamj you welcome I updated the source code ... and its worded
wait for final version of RTL support which will be uploaded on pub
fixed in https://github.com/rafalbednarczuk/curved_navigation_bar/commit/a0901e2f57bb6b714eaa8adec6f71fde1bdc5516 pub updated - version 0.2.20
I use this in a RTL app and it don't work right