{"id":14969879,"url":"https://github.com/lanarsinc/animated-bottom-navigation-bar-flutter","last_synced_at":"2025-10-04T11:47:58.723Z","repository":{"id":37092001,"uuid":"257900074","full_name":"LanarsInc/animated-bottom-navigation-bar-flutter","owner":"LanarsInc","description":"AnimatedBottomNavigationBar is a customizable widget inspired by","archived":false,"fork":false,"pushed_at":"2025-02-11T11:34:39.000Z","size":2665,"stargazers_count":412,"open_issues_count":3,"forks_count":115,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-10T13:50:17.197Z","etag":null,"topics":["bottom-navigation","flutter","flutter-ui","flutter-ui-collection","widget"],"latest_commit_sha":null,"homepage":"https://dribbble.com/shots/7134849-Simple-Tab-Bar-Animation","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LanarsInc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-22T12:50:20.000Z","updated_at":"2025-06-04T10:27:05.000Z","dependencies_parsed_at":"2024-01-17T12:40:33.481Z","dependency_job_id":"3bd2acdd-d8bb-4d2e-ac7d-6b42a19ba6f1","html_url":"https://github.com/LanarsInc/animated-bottom-navigation-bar-flutter","commit_stats":{"total_commits":119,"total_committers":12,"mean_commits":9.916666666666666,"dds":0.4453781512605042,"last_synced_commit":"32647a75b9d8e3bedbb02f42f6dd6655277419e6"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/LanarsInc/animated-bottom-navigation-bar-flutter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LanarsInc%2Fanimated-bottom-navigation-bar-flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LanarsInc%2Fanimated-bottom-navigation-bar-flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LanarsInc%2Fanimated-bottom-navigation-bar-flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LanarsInc%2Fanimated-bottom-navigation-bar-flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LanarsInc","download_url":"https://codeload.github.com/LanarsInc/animated-bottom-navigation-bar-flutter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LanarsInc%2Fanimated-bottom-navigation-bar-flutter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278308627,"owners_count":25965654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bottom-navigation","flutter","flutter-ui","flutter-ui-collection","widget"],"created_at":"2024-09-24T13:42:34.599Z","updated_at":"2025-10-04T11:47:58.691Z","avatar_url":"https://github.com/LanarsInc.png","language":"Dart","funding_links":["https://www.buymeacoffee.com/lanars"],"categories":[],"sub_categories":[],"readme":"[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)\n\nAnimatedBottomNavigationBar is a customizable widget inspired by [dribble shot](https://dribbble.com/shots/7134849-Simple-Tab-Bar-Animation).\n\n[![pub package](https://img.shields.io/pub/v/animated_bottom_navigation_bar.svg)](https://pub.dev/packages/animated_bottom_navigation_bar)\n\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/lanars)\n\n\u003cimg src=\"https://raw.githubusercontent.com/LanarsInc/animated-bottom-navigation-bar-flutter/master/doc/assets/animated-bottom-navigation-bar.gif\" width=\"300\"\u003e\n\nWith `AnimatedBottomNavigationBar.builder` you are able to customize tab view however you need. In this case you are responsible to handle an active(inactive) state of tabs.\n\n\u003cimg src=\"https://raw.githubusercontent.com/LanarsInc/animated-bottom-navigation-bar-flutter/master/doc/assets/animated-bottom-navigation-bar.jpg\" width=\"300\"\u003e\n\n# Getting Started\n\nTo get started, place your `AnimatedBottomNavigationBar` or `AnimatedBottomNavigationBar.builder` in the bottomNavigationBar slot of a `Scaffold`.\nThe `AnimatedBottomNavigationBar` respects `FloatingActionButton` location.\nFor example:\n\n```dart\nScaffold(\n   body: Container(), //destination screen\n   floatingActionButton: FloatingActionButton(\n      //params\n   ),\n   floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,\n   bottomNavigationBar: AnimatedBottomNavigationBar(\n      icons: iconList,\n      activeIndex: _bottomNavIndex,\n      gapLocation: GapLocation.center,\n      notchSmoothness: NotchSmoothness.verySmoothEdge,\n      leftCornerRadius: 32,\n      rightCornerRadius: 32,\n      onTap: (index) =\u003e setState(() =\u003e _bottomNavIndex = index),\n      //other params\n   ),\n);\n```\n\nThere is also a more flexible way to build `bottomNavigationBar` with Builder (see [example](https://pub.dev/packages/animated_bottom_navigation_bar/example) for more insights): \n```dart\nScaffold(\n   body: Container(), //destination screen\n   floatingActionButton: FloatingActionButton(\n      //params\n   ),\n   floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,\n   bottomNavigationBar: AnimatedBottomNavigationBar.builder(\n      itemCount: iconList.length,\n      tabBuilder: (int index, bool isActive) {\n        return Icon(\n          iconList[index],\n          size: 24,\n          color: isActive ? colors.activeNavigationBarColor : colors.notActiveNavigationBarColor,\n        );\n      activeIndex: _bottomNavIndex,\n      gapLocation: GapLocation.center,\n      notchSmoothness: NotchSmoothness.verySmoothEdge,\n      leftCornerRadius: 32,\n      rightCornerRadius: 32,\n      onTap: (index) =\u003e setState(() =\u003e _bottomNavIndex = index),\n      //other params\n   ),\n);\n```\n\n\n\u003cimg src=\"https://raw.githubusercontent.com/LanarsInc/animated-bottom-navigation-bar-flutter/master/doc/assets/example-cornered-notched-bar.jpeg\" width=\"300\"\u003e\n\n# Customization\n\nAnimatedBottomNavigationBar is customizable and works with 2, 3, 4, or 5 navigation elements.\n```dart\nScaffold(\n   bottomNavigationBar: AnimatedBottomNavigationBar(\n      icons: iconList,\n      activeIndex: _bottomNavIndex,\n      onTap: (index) =\u003e setState(() =\u003e _bottomNavIndex = index),\n      //other params\n   ),\n);\n```\n\u003cimg src=\"https://raw.githubusercontent.com/LanarsInc/animated-bottom-navigation-bar-flutter/master/doc/assets/example-plain-bar.jpeg\" width=\"300\"\u003e\n\n```dart\nScaffold(\n   bottomNavigationBar: AnimatedBottomNavigationBar(\n      icons: iconList,\n      activeIndex: _bottomNavIndex,\n      leftCornerRadius: 32,\n      rightCornerRadius: 32,\n      onTap: (index) =\u003e setState(() =\u003e _bottomNavIndex = index),\n      //other params\n   ),\n);\n```\n\u003cimg src=\"https://raw.githubusercontent.com/LanarsInc/animated-bottom-navigation-bar-flutter/master/doc/assets/example-cornered-bar.jpeg\" width=\"300\"\u003e\n\n```dart\nScaffold(\n   floatingActionButton: FloatingActionButton(\n      //params\n   ),\n   floatingActionButtonLocation: FloatingActionButtonLocation.endDocked,\n   bottomNavigationBar: AnimatedBottomNavigationBar(\n      icons: iconList,\n      activeIndex: _bottomNavIndex,\n      gapLocation: GapLocation.end,\n      notchSmoothness: NotchSmoothness.defaultEdge,\n      onTap: (index) =\u003e setState(() =\u003e _bottomNavIndex = index),\n      //other params\n   ),\n);\n```\n\u003cimg src=\"https://raw.githubusercontent.com/LanarsInc/animated-bottom-navigation-bar-flutter/master/doc/assets/example-notched-end.jpeg\" width=\"300\"\u003e\n\n```dart\nScaffold(\n   floatingActionButton: FloatingActionButton(\n      //params\n   ),\n   floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,\n   bottomNavigationBar: AnimatedBottomNavigationBar(\n      icons: iconList,\n      activeIndex: _bottomNavIndex,\n      gapLocation: GapLocation.center,\n      notchSmoothness: NotchSmoothness.defaultEdge,\n      onTap: (index) =\u003e setState(() =\u003e _bottomNavIndex = index),\n      //other params\n   ),\n);\n```\n\u003cimg src=\"https://raw.githubusercontent.com/LanarsInc/animated-bottom-navigation-bar-flutter/master/doc/assets/example-default-notch-center.jpeg\" width=\"300\"\u003e\n\n```dart\nScaffold(\n   floatingActionButton: FloatingActionButton(\n      //params\n   ),\n   floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,\n   bottomNavigationBar: AnimatedBottomNavigationBar(\n      icons: iconList,\n      activeIndex: _bottomNavIndex,\n      gapLocation: GapLocation.center,\n      notchSmoothness: NotchSmoothness.softEdge,\n      onTap: (index) =\u003e setState(() =\u003e _bottomNavIndex = index),\n      //other params\n   ),\n);\n```\n\u003cimg src=\"https://raw.githubusercontent.com/LanarsInc/animated-bottom-navigation-bar-flutter/master/doc/assets/example-soft-notch-center.jpeg\" width=\"300\"\u003e\n\n```dart\nScaffold(\n   floatingActionButton: FloatingActionButton(\n      //params\n   ),\n   floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,\n   bottomNavigationBar: AnimatedBottomNavigationBar(\n      icons: iconList,\n      activeIndex: _bottomNavIndex,\n      gapLocation: GapLocation.center,\n      notchSmoothness: NotchSmoothness.smoothEdge,\n      onTap: (index) =\u003e setState(() =\u003e _bottomNavIndex = index),\n      //other params\n   ),\n);\n```\n\u003cimg src=\"https://raw.githubusercontent.com/LanarsInc/animated-bottom-navigation-bar-flutter/master/doc/assets/example-smooth-notch-center.jpeg\" width=\"300\"\u003e\n\n```dart\nScaffold(\n   floatingActionButton: FloatingActionButton(\n      //params\n   ),\n   floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,\n   bottomNavigationBar: AnimatedBottomNavigationBar(\n      icons: iconList,\n      activeIndex: _bottomNavIndex,\n      gapLocation: GapLocation.center,\n      notchSmoothness: NotchSmoothness.verySmoothEdge,\n      onTap: (index) =\u003e setState(() =\u003e _bottomNavIndex = index),\n      //other params\n   ),\n);\n```\n\u003cimg src=\"https://raw.githubusercontent.com/LanarsInc/animated-bottom-navigation-bar-flutter/master/doc/assets/example-very-smooth-notch-center.jpeg\" width=\"300\"\u003e \n\n# Driving Navigation Bar Changes\n\nYou have to change the active navigation bar tab programmatically by passing a new activeIndex to the AnimatedBottomNavigationBar widget.\n\n```dart\nclass _MyAppState extends State\u003cMyApp\u003e {\n  int activeIndex;\n\n  /// Handler for when you want to programmatically change\n  /// the active index. Calling `setState()` here causes\n  /// Flutter to re-render the tree, which `AnimatedBottomNavigationBar`\n  /// responds to by running its normal animation.\n  void _onTap(int index) {\n    setState((){\n      activeIndex = index;\n    });\n  }\n\n  Widget build(BuildContext context) {\n    return AnimatedBottomNavigationBar(\n      activeIndex: activeIndex,\n      onTap: _onTap,\n      //other params\n    );\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flanarsinc%2Fanimated-bottom-navigation-bar-flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flanarsinc%2Fanimated-bottom-navigation-bar-flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flanarsinc%2Fanimated-bottom-navigation-bar-flutter/lists"}