payload: {"action":"created","issue":{"url":"https://api.github.com/repos/pedromassango/titled_navigation_bar/issues/17","repository_url":"https://api.github.com/repos/pedromassango/titled_navigation_bar","labels_url":"https://api.github.com/repos/pedromassango/titled_navigation_bar/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/pedromassango/titled_navigation_bar/issues/17/comments","events_url":"https://api.github.com/repos/pedromassango/titled_navigation_bar/issues/17/events","html_url":"https://github.com/pedromassango/titled_navigation_bar/issues/17","id":495309953,"node_id":"MDU6SXNzdWU0OTUzMDk5NTM=","number":17,"title":"issues to change currentIndex and change animation !","user":{"login":"EhsanBrd","id":25132414,"node_id":"MDQ6VXNlcjI1MTMyNDE0","avatar_url":"https://avatars1.githubusercontent.com/u/25132414?v=4","gravatar_id":"","url":"https://api.github.com/users/EhsanBrd","html_url":"https://github.com/EhsanBrd","followers_url":"https://api.github.com/users/EhsanBrd/followers","following_url":"https://api.github.com/users/EhsanBrd/following{/other_user}","gists_url":"https://api.github.com/users/EhsanBrd/gists{/gist_id}","starred_url":"https://api.github.com/users/EhsanBrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EhsanBrd/subscriptions","organizations_url":"https://api.github.com/users/EhsanBrd/orgs","repos_url":"https://api.github.com/users/EhsanBrd/repos","events_url":"https://api.github.com/users/EhsanBrd/events{/privacy}","received_events_url":"https://api.github.com/users/EhsanBrd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2019-09-18T15:46:16Z","updated_at":"2019-09-20T14:17:02Z","closed_at":"2019-09-18T19:20:07Z","author_association":"NONE","body":"how can we change current index ?!\r\nit's my code\r\n\r\nclass _MainNavigationBarState extends State<MainNavigationBar> {\r\n  int currentPage = 0;\r\n\r\n  GlobalKey bottomNavigationKey = GlobalKey();\r\n\r\n  @override\r\n  Widget build(BuildContext context) {\r\n    return Scaffold(\r\n      body: Container(\r\n        decoration: BoxDecoration(color: Colors.white),\r\n        child: Center(\r\n          child: _getPage(currentPage),\r\n        ),\r\n      ),\r\n      bottomNavigationBar: TitledBottomNavigationBar(\r\n          currentIndex: 0, // Use this to update the Bar giving a position\r\n          onTap: (index) => _onTabTapped(index),\r\n          key: bottomNavigationKey,\r\n          inactiveColor: Colors.grey,\r\n          activeColor: Colors.black,\r\n          reverse: true,\r\n          curve: Curves.easeIn,\r\n          items: [\r\n            TitledNavigationBarItem(title: 'Home', icon: Icons.home),\r\n            TitledNavigationBarItem(title: 'Search', icon: Icons.search),\r\n            TitledNavigationBarItem(title: 'Basket', icon: Icons.shopping_basket),\r\n            TitledNavigationBarItem(title: 'Profile', icon: Icons.person_outline),\r\n          ]\r\n      )\r\n\r\n    );\r\n  }\r\n\r\n  void _onTabTapped(int index) {\r\n    setState(() {\r\n      currentPage = index;\r\n    }); \r\n![9-18-2019 8-13-36 PM](https://user-images.githubusercontent.com/25132414/65163886-102b7380-da51-11e9-925f-56526c105861.gif)\r\n\r\n  }\r\n\r\n  _getPage(int page) {\r\n    switch (page) {\r\n      case 0:\r\n        return Directionality(textDirection: TextDirection.rtl, child: HomeScreen());\r\n      case 1:\r\n        return Directionality(textDirection: TextDirection.rtl, child: Search());\r\n      case 2:\r\n        return Directionality(textDirection: TextDirection.rtl, child: Basket());\r\n      case 3:\r\n        return Directionality(textDirection: TextDirection.rtl, child: Profile());\r\n      default:\r\n        return Container();\r\n    }\r\n  }\r\n"},"comment":{"url":"https://api.github.com/repos/pedromassango/titled_navigation_bar/issues/comments/533572542","html_url":"https://github.com/pedromassango/titled_navigation_bar/issues/17#issuecomment-533572542","issue_url":"https://api.github.com/repos/pedromassango/titled_navigation_bar/issues/17","id":533572542,"node_id":"MDEyOklzc3VlQ29tbWVudDUzMzU3MjU0Mg==","user":{"login":"EhsanBrd","id":25132414,"node_id":"MDQ6VXNlcjI1MTMyNDE0","avatar_url":"https://avatars1.githubusercontent.com/u/25132414?v=4","gravatar_id":"","url":"https://api.github.com/users/EhsanBrd","html_url":"https://github.com/EhsanBrd","followers_url":"https://api.github.com/users/EhsanBrd/followers","following_url":"https://api.github.com/users/EhsanBrd/following{/other_user}","gists_url":"https://api.github.com/users/EhsanBrd/gists{/gist_id}","starred_url":"https://api.github.com/users/EhsanBrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EhsanBrd/subscriptions","organizations_url":"https://api.github.com/users/EhsanBrd/orgs","repos_url":"https://api.github.com/users/EhsanBrd/repos","events_url":"https://api.github.com/users/EhsanBrd/events{/privacy}","received_events_url":"https://api.github.com/users/EhsanBrd/received_events","type":"User","site_admin":false},"created_at":"2019-09-20T14:17:02Z","updated_at":"2019-09-20T14:17:02Z","author_association":"NONE","body":"> Note that `currentIndex` should be updated to animate the tabbar to the desired position. Try this:\r\n> \r\n> use `currentIndex: currentPage` it should work\r\n\r\nThank's bro , **it's work**"}}
other: {"actor":{"display_login":"EhsanBrd"}}